Skip to content
Snippets Groups Projects
Commit cf653e06 authored by Martin Lowe's avatar Martin Lowe :flag_ca:
Browse files

Merge branch 'malowe/main/testing-schema-patches' into 'master'

Fix openapi spec for required fields, switch to main as default branch

See merge request !50
parents 8cbf6899 7098430d
No related branches found
No related tags found
1 merge request!50Fix openapi spec for required fields, switch to main as default branch
Pipeline #52120 passed
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
stage('Build with Sonarcloud scan') { stage('Build with Sonarcloud scan') {
when { when {
branch 'master' branch 'main'
} }
steps { steps {
container('buildcontainer') { container('buildcontainer') {
...@@ -162,7 +162,7 @@ ...@@ -162,7 +162,7 @@
stage('Build without Sonarcloud scan') { stage('Build without Sonarcloud scan') {
when { when {
not { not {
branch 'master' branch 'main'
} }
} }
......
...@@ -112,6 +112,12 @@ components: ...@@ -112,6 +112,12 @@ components:
schemas: schemas:
Country: Country:
type: object type: object
additionalProperties: false
required:
- geoname_id
- iso_code
- names
- is_in_european_union
properties: properties:
geoname_id: geoname_id:
type: integer type: integer
...@@ -134,6 +140,10 @@ components: ...@@ -134,6 +140,10 @@ components:
City: City:
type: object type: object
additionalProperties: false
required:
- geoname_id
- names
properties: properties:
geoname_id: geoname_id:
type: integer type: integer
...@@ -157,6 +167,10 @@ components: ...@@ -157,6 +167,10 @@ components:
Error: Error:
type: object type: object
additionalProperties: false
required:
- status_code
- message
properties: properties:
status_code: status_code:
type: integer type: integer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment