Skip to content

Commit 0e913f5

Browse files
committed
📝 [maykinmedia/open-api-framework#115] Regenerate schema
to add translated messages
1 parent c9cd46c commit 0e913f5

File tree

2 files changed

+24
-16
lines changed

2 files changed

+24
-16
lines changed

bin/generate_schema.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ export SCHEMA_PATH=src/objecttypes/api/v2/openapi.yaml
88

99
OUTPUT_FILE=$1
1010

11-
src/manage.py spectacular --file ${OUTPUT_FILE:-$SCHEMA_PATH} --validate
11+
src/manage.py spectacular --file ${OUTPUT_FILE:-$SCHEMA_PATH} --validate --lang="nl-nl"

src/objecttypes/api/v2/openapi.yaml

+23-15
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ paths:
8989
type: string
9090
enum:
9191
- application/json
92-
description: Content type of the request body.
92+
description: Content type van de verzoekinhoud.
9393
required: true
9494
tags:
9595
- Objecttypes
@@ -153,7 +153,7 @@ paths:
153153
type: string
154154
enum:
155155
- application/json
156-
description: Content type of the request body.
156+
description: Content type van de verzoekinhoud.
157157
required: true
158158
- in: path
159159
name: objecttype_uuid
@@ -196,6 +196,7 @@ paths:
196196
type: integer
197197
maximum: 32767
198198
minimum: 0
199+
title: Versie
199200
description: Integer version of the OBJECTTYPE
200201
required: true
201202
tags:
@@ -219,7 +220,7 @@ paths:
219220
type: string
220221
enum:
221222
- application/json
222-
description: Content type of the request body.
223+
description: Content type van de verzoekinhoud.
223224
required: true
224225
- in: path
225226
name: objecttype_uuid
@@ -234,6 +235,7 @@ paths:
234235
type: integer
235236
maximum: 32767
236237
minimum: 0
238+
title: Versie
237239
description: Integer version of the OBJECTTYPE
238240
required: true
239241
tags:
@@ -262,7 +264,7 @@ paths:
262264
type: string
263265
enum:
264266
- application/json
265-
description: Content type of the request body.
267+
description: Content type van de verzoekinhoud.
266268
required: true
267269
- in: path
268270
name: objecttype_uuid
@@ -277,6 +279,7 @@ paths:
277279
type: integer
278280
maximum: 32767
279281
minimum: 0
282+
title: Versie
280283
description: Integer version of the OBJECTTYPE
281284
required: true
282285
tags:
@@ -312,6 +315,7 @@ paths:
312315
type: integer
313316
maximum: 32767
314317
minimum: 0
318+
title: Versie
315319
description: Integer version of the OBJECTTYPE
316320
required: true
317321
tags:
@@ -352,7 +356,7 @@ paths:
352356
type: string
353357
enum:
354358
- application/json
355-
description: Content type of the request body.
359+
description: Content type van de verzoekinhoud.
356360
required: true
357361
- in: path
358362
name: uuid
@@ -387,7 +391,7 @@ paths:
387391
type: string
388392
enum:
389393
- application/json
390-
description: Content type of the request body.
394+
description: Content type van de verzoekinhoud.
391395
required: true
392396
- in: path
393397
name: uuid
@@ -449,17 +453,18 @@ components:
449453
url:
450454
type: string
451455
format: uri
456+
readOnly: true
452457
minLength: 1
453458
maxLength: 1000
454-
description: URL reference to this object. This is the unique identification
455-
and location of this object.
456-
readOnly: true
459+
description: URL-referentie naar dit object. Dit is de unieke identificatie
460+
en locatie van dit object.
457461
uuid:
458462
type: string
459463
format: uuid
460464
description: Unique identifier (UUID4)
461465
name:
462466
type: string
467+
title: Naam
463468
description: Name of the object type
464469
maxLength: 100
465470
namePlural:
@@ -514,7 +519,7 @@ components:
514519
* `weekly` - Weekly
515520
* `monthly` - Monthly
516521
* `yearly` - Yearly
517-
* `unknown` - Unknown
522+
* `unknown` - Onbekend
518523
providerOrganization:
519524
type: string
520525
description: Organization which is responsible for publication of the object
@@ -571,6 +576,7 @@ components:
571576
version:
572577
type: integer
573578
readOnly: true
579+
title: Versie
574580
description: Integer version of the OBJECTTYPE
575581
objectType:
576582
type: string
@@ -657,17 +663,18 @@ components:
657663
url:
658664
type: string
659665
format: uri
666+
readOnly: true
660667
minLength: 1
661668
maxLength: 1000
662-
description: URL reference to this object. This is the unique identification
663-
and location of this object.
664-
readOnly: true
669+
description: URL-referentie naar dit object. Dit is de unieke identificatie
670+
en locatie van dit object.
665671
uuid:
666672
type: string
667673
format: uuid
668674
description: Unique identifier (UUID4)
669675
name:
670676
type: string
677+
title: Naam
671678
description: Name of the object type
672679
maxLength: 100
673680
namePlural:
@@ -722,7 +729,7 @@ components:
722729
* `weekly` - Weekly
723730
* `monthly` - Monthly
724731
* `yearly` - Yearly
725-
* `unknown` - Unknown
732+
* `unknown` - Onbekend
726733
providerOrganization:
727734
type: string
728735
description: Organization which is responsible for publication of the object
@@ -776,6 +783,7 @@ components:
776783
version:
777784
type: integer
778785
readOnly: true
786+
title: Versie
779787
description: Integer version of the OBJECTTYPE
780788
objectType:
781789
type: string
@@ -837,7 +845,7 @@ components:
837845
* `weekly` - Weekly
838846
* `monthly` - Monthly
839847
* `yearly` - Yearly
840-
* `unknown` - Unknown
848+
* `unknown` - Onbekend
841849
securitySchemes:
842850
tokenAuth:
843851
type: apiKey

0 commit comments

Comments
 (0)