[WIP] feat: json-schema and OAS for authzen 1.0#419
[WIP] feat: json-schema and OAS for authzen 1.0#419Oltho wants to merge 8 commits intoopenid:mainfrom
Conversation
|
It might be difficult to review the OAS without pulling the code locally and using OAS specifics tool. Here's an example of OAS documentation generated via cli:
EDIT: You can use online tool to visualize the OAS:
We can clearly see the issue mentioned as (2), taking the example of |
|
should json-schema carry the syntactic rules/validation ? Looking at the access-evaluations-api-request, we have multiple scenario (but not limited to):
While json-schema offer syntactic validation capabilities, authzen endpoint are still flexible which will make the definition of all possible json-schema complex ? |
|
We discussed this on last weeks call with the decision being that schema should be as strict as possible.
|


Description
This is an uplift from #186 to take into account the new model/request/response part of authorization-api-1_0-05 and also defining the expected Open API Specs 3.1 (OAS) matching HTTPS JSON Binding
Having OAS defined will enable "developer" to leverage code generation tool such as openapi-generator to generate SDK/language specific code to consume system implementing the Authzen HTTPS JSON Binding.
Additional note
$refwith an attempt to overriderequiredkeyword (seesearch-subject-request.json), which is not officially documented part of json-schema-2020-12$idSHOULD be replaced with a gitlab/tag URL to the same schema$refmight be replace with URL similar as (4)