diff --git a/bin/generate_schema.sh b/bin/generate_schema.sh index cdb81a6..1d394ff 100755 --- a/bin/generate_schema.sh +++ b/bin/generate_schema.sh @@ -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" diff --git a/src/objecttypes/api/v2/openapi.yaml b/src/objecttypes/api/v2/openapi.yaml index 3dff2a0..01bb4bc 100644 --- a/src/objecttypes/api/v2/openapi.yaml +++ b/src/objecttypes/api/v2/openapi.yaml @@ -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 @@ -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