Skip to content

Commit 64341cb

Browse files
Merge pull request #25 from agile-learning-institute/fix/openapi-schema-issues
Fix OpenAPI schema issues for API explorer
2 parents de3527a + 778289e commit 64341cb

File tree

1 file changed

+5
-38
lines changed

1 file changed

+5
-38
lines changed

docs/openapi.yaml

Lines changed: 5 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -522,24 +522,7 @@ paths:
522522
application/json:
523523
schema:
524524
$ref: '#/components/schemas/events'
525-
patch:
526-
summary: Lock all Test Data Files
527-
operationId: lock_all_test_data
528-
tags:
529-
- Test Data
530-
responses:
531-
'200':
532-
description: All test data files locked successfully
533-
content:
534-
application/json:
535-
schema:
536-
$ref: '#/components/schemas/events'
537-
'500':
538-
description: Processing error
539-
content:
540-
application/json:
541-
schema:
542-
$ref: '#/components/schemas/events'
525+
543526

544527
/api/test_data/{file_name}/:
545528
get:
@@ -650,24 +633,7 @@ paths:
650633
application/json:
651634
schema:
652635
$ref: '#/components/schemas/events'
653-
patch:
654-
summary: Lock all Migration Files
655-
operationId: lock_all_migrations
656-
tags:
657-
- Migrations
658-
responses:
659-
'200':
660-
description: All migration files locked successfully
661-
content:
662-
application/json:
663-
schema:
664-
$ref: '#/components/schemas/events'
665-
'500':
666-
description: Processing error
667-
content:
668-
application/json:
669-
schema:
670-
$ref: '#/components/schemas/events'
636+
671637

672638

673639
/api/migrations/{file_name}/:
@@ -954,8 +920,9 @@ components:
954920
file:
955921
type: object
956922
properties:
957-
name:
923+
file_name:
958924
type: string
925+
description: Name of the file
959926
created_at:
960927
type: string
961928
format: date-time
@@ -1065,7 +1032,7 @@ components:
10651032
properties:
10661033
description: Properties of an Object type
10671034
type: object
1068-
properties:
1035+
additionalProperties:
10691036
$ref: '#/components/schemas/dictionary'
10701037
additionalProperties:
10711038
description: Should the object type allow additional properties

0 commit comments

Comments
 (0)