-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update schema tools to fix mock data (#930)
* Update schema tools to fix mock data When running docker compose with mock data the command failed due to an outdated schema being provided. We now use the active Amsterdam schema to generate mock data. The provided schema container is now also obsolute and thus removed. * Use local schemas in openapi spec test Starting up the container with the full Amsterdam Schema takes to long, so we use the schemas container for this test using a specific docker compose override. The schemas have been updated to a recent version.
- Loading branch information
1 parent
c74aa0a
commit 6289093
Showing
59 changed files
with
4,616 additions
and
1,990 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
services: | ||
web: | ||
links: | ||
- database | ||
- schemas | ||
environment: | ||
SCHEMA_URL: "${SCHEMA_URL:-http://schemas/datasets/}" | ||
DATASETS_LIST: "bag,brk_2,gebieden,sportparken,precariobelasting" | ||
|
||
schemas: | ||
image: nginx | ||
ports: | ||
- "8080:80" | ||
volumes: | ||
- "./schemas/data/datasets:/usr/share/nginx/html/datasets" | ||
- "./schemas/data/publishers:/usr/share/nginx/html/publishers" | ||
- "./schemas/conf/default.conf:/etc/nginx/conf.d/default.conf" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"id": "brondocumenten", | ||
"type": "table", | ||
"version": "1.0.1", | ||
"schema": { | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"identifier": "documentnummer", | ||
"required": [ | ||
"schema", | ||
"documentnummer" | ||
], | ||
"display": "documentnummer", | ||
"properties": { | ||
"schema": { | ||
"$ref": "https://schemas.data.amsterdam.nl/[email protected]#/definitions/schema" | ||
}, | ||
"documentnummer": { | ||
"type": "string", | ||
"title": "Brondocument nummer", | ||
"description": "Identificerende nummer van het document" | ||
}, | ||
"bronleverancierCode": { | ||
"type": "string", | ||
"provenance": "$.bronleverancier.code", | ||
"title": "Bron leverancier code", | ||
"description": "Verstrekker van brondocumenten en/of gegevens voortkomend uit het uitoefenen of voorbereiden van een gemeentelijke bevoegdheid, die nodig zijn voor een registratie aan de bronhouder, conform vastgestelde aanleverspecificaties. code" | ||
}, | ||
"bronleverancierOmschrijving": { | ||
"type": "string", | ||
"provenance": "$.bronleverancier.omschrijving", | ||
"title": "Bron leverancier omschrijving", | ||
"description": "Verstrekker van brondocumenten en/of gegevens voortkomend uit het uitoefenen of voorbereiden van een gemeentelijke bevoegdheid, die nodig zijn voor een registratie aan de bronhouder, conform vastgestelde aanleverspecificaties. omschrijving" | ||
}, | ||
"typeDossierCode": { | ||
"type": "string", | ||
"provenance": "$.typeDossier.code", | ||
"title": "Dossier type code", | ||
"description": "Het type dossier. code" | ||
}, | ||
"typeDossierOmschrijving": { | ||
"type": "string", | ||
"provenance": "$.typeDossier.omschrijving", | ||
"title": "Dossier type omschrijving", | ||
"description": "Het type dossier. omschrijving" | ||
}, | ||
"typeBrondocumentCode": { | ||
"type": "string", | ||
"provenance": "$.typeBrondocument.code", | ||
"title": "Brondocument type code", | ||
"description": "Het type brondocument. code" | ||
}, | ||
"typeBrondocumentOmschrijving": { | ||
"type": "string", | ||
"provenance": "$.typeBrondocument.omschrijving", | ||
"title": "Brondocument type omschrijving", | ||
"description": "Het type brondocument. omschrijving" | ||
}, | ||
"registratiedatum": { | ||
"type": "string", | ||
"title": "Registratie datum", | ||
"format": "date-time", | ||
"description": "De datum waarop het brondocument is opgeslagen in het register" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.