-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AB#101824 Fix auth property for subfields.
Field with subfields were not protected by the scope of the main field. E.g. ``` "soortCultuurOnbebouwd": { "auth": ["BRK/RO"], "type": "object", "properties": { "code": { "type": "string" }, "omschrijving": { "type": "string" } } ``` Whe accessing the subfield `soortCultuurOnbebouwdCode`, the scope "BRK/RO" should be applied, however, it was not. This PR fixes that bug.
- Loading branch information
Showing
7 changed files
with
85 additions
and
2 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
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,55 @@ | ||
{ | ||
"id": "subfieldauth", | ||
"type": "dataset", | ||
"description": "Dataset with auth on an field with subfields", | ||
"license": "public", | ||
"status": "niet_beschikbaar", | ||
"version": "1.2.3", | ||
"publisher": "us", | ||
"owner": "us", | ||
"authorizationGrantor": "us", | ||
"crs": "EPSG:28992", | ||
"tables": [ | ||
{ | ||
"id": "base", | ||
"type": "table", | ||
"title": "Base", | ||
"version": "1.2.4", | ||
"schema": { | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"identifier": ["id"], | ||
"required": ["schema", "id"], | ||
"display": "title", | ||
"properties": { | ||
"schema": { | ||
"$ref": "https://schemas.data.amsterdam.nl/[email protected]#/definitions/schema" | ||
}, | ||
"id": { | ||
"auth": ["BASE/ID"], | ||
"reasonsNonPublic": ["nader te bepalen"], | ||
"type": "integer", | ||
"description": "Unieke aanduiding van het record." | ||
}, | ||
"title": { | ||
"type": "string", | ||
"description": "Titel van het record." | ||
}, | ||
"soortCultuurOnbebouwd": { | ||
"auth": ["BRK/RO"], | ||
"type": "object", | ||
"properties": { | ||
"code": { | ||
"type": "string" | ||
}, | ||
"omschrijving": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} |
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