dahag-ag / keycloak-openapi Goto Github PK
View Code? Open in Web Editor NEWOpenApi definitions for the Keycloak Admin API
License: MIT License
OpenApi definitions for the Keycloak Admin API
License: MIT License
In the new 23.0.0 file response are defined like "200", but in the previous versions it was like "2xx" i ran into the first issue when creating a realm which returned a 201. Which now fails in the created client as it only accepts 200 request as result.
"RealmRepresentation": {
...
"components": {
"type": "object",
"additionalProperties": {
- "$ref": "#/$defs/ComponentExportRepresentation"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/ComponentExportRepresentation"
+ }
}
},
"ComponentExportRepresentation": {
...
"config": {
"type": "object",
"additionalProperties": {
- "type": "string"
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
},
"subComponents": {
"type": "object",
"additionalProperties": {
- "$ref": "#/$defs/ComponentExportRepresentation"
+ "type": "array",
+ "items": {
+ "$ref": "#/$defs/ComponentExportRepresentation"
+ }
}
}
Can you please also generate a JSON with just the JSON Schema?
I’ve added `additionalProperties: false' to all of the objects and validated realm export to check that all of the properties are actually defined in the schemas (for 21.0.0). There are my findings.
RealmRepresentation:
properties:
- oAuth2DeviceCodeLifespan:
+ oauth2DeviceCodeLifespan:
- oAuth2DevicePollingInterval
+ oauth2DevicePollingInterval
+ clientPolicies:
+ $ref: "#/components/schemas/ClientPoliciesRepresentation"
+ clientProfiles:
+ $ref: "#/components/schemas/ClientProfilesRepresentation"
components:
additionalProperties:
- $ref: "#/components/schemas/ComponentExportRepresentation"
+ type: array
+ items:
+ $ref: "#/components/schemas/ComponentExportRepresentation"
ClientPoliciesRepresentation:
properties:
policies:
type: array
items:
- type: object
- description: ClientPolicyRepresentation
+ $ref: "#/components/schemas/ClientPolicyRepresentation"
+ ClientPolicyRepresentation:
ComponentExportRepresentation:
properties:
config:
additionalProperties:
- type: string
+ type: array
+ items:
+ type: string
subComponents:
additionalProperties:
- $ref: "#/components/schemas/ComponentExportRepresentation"
+ type: array
+ items:
+ $ref: "#/components/schemas/ComponentExportRepresentation"
PolicyRepresentation:
properties:
+ // + all properties from AbstractPolicyRepresentation
AuthenticationExecutionExportRepresentation:
properties:
+ // + all properties from AbstractAuthenticationExecutionRepresentation
Could you generate files for Keycloak 24?
title says it all
The following enums are wrong, they shouldn’t contain (N)
.
"decisionStrategy": {
"enum": [
- "AFFIRMATIVE(0)",
- "UNANIMOUS(1)",
- "CONSENSUS(2)"
+ "AFFIRMATIVE",
+ "UNANIMOUS",
+ "CONSENSUS"
],
"logic": {
"enum": [
- "POSITIVE(0)",
- "NEGATIVE(1)"
+ "POSITIVE",
+ "NEGATIVE"
],
"policyEnforcementMode": {
"enum": [
- "ENFORCING(0)",
- "PERMISSIVE(1)",
- "DISABLED(2)"
+ "ENFORCING",
+ "PERMISSIVE",
+ "DISABLED"
],
"decisionStrategy": {
"enum": [
- "AFFIRMATIVE(0)",
- "UNANIMOUS(1)",
- "CONSENSUS(2)"
+ "AFFIRMATIVE",
+ "UNANIMOUS",
+ "CONSENSUS"
],
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.