From b2b87fa6299e2a91b530a7e0df20e513b29ea542 Mon Sep 17 00:00:00 2001 From: Steven Bal Date: Thu, 6 Mar 2025 15:12:49 +0100 Subject: [PATCH] :memo: [maykinmedia/open-api-framework#115] Regenerate schema and explicitly generate it in English --- bin/generate_schema.sh | 2 +- src/objecttypes/api/v2/openapi.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/generate_schema.sh b/bin/generate_schema.sh index cdb81a67..1d394ff1 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 3dff2a0a..01bb4bc1 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