Skip to content

Commit

Permalink
📝 [maykinmedia/open-api-framework#115] Regenerate schema
Browse files Browse the repository at this point in the history
and explicitly generate it in English
  • Loading branch information
stevenbal committed Mar 7, 2025
1 parent c46e74f commit b2b87fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/generate_schema.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export SCHEMA_PATH=src/objecttypes/api/v2/openapi.yaml

OUTPUT_FILE=$1

src/manage.py spectacular --file ${OUTPUT_FILE:-$SCHEMA_PATH} --validate
src/manage.py spectacular --file ${OUTPUT_FILE:-$SCHEMA_PATH} --validate --lang="en"
4 changes: 2 additions & 2 deletions src/objecttypes/api/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -449,11 +449,11 @@ components:
url:
type: string
format: uri
readOnly: true
minLength: 1
maxLength: 1000
description: URL reference to this object. This is the unique identification
and location of this object.
readOnly: true
uuid:
type: string
format: uuid
Expand Down Expand Up @@ -657,11 +657,11 @@ components:
url:
type: string
format: uri
readOnly: true
minLength: 1
maxLength: 1000
description: URL reference to this object. This is the unique identification
and location of this object.
readOnly: true
uuid:
type: string
format: uuid
Expand Down

0 comments on commit b2b87fa

Please sign in to comment.