Coder Social home page Coder Social logo

keycloak-openapi's People

Contributors

dahag-arisnourbakhsh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

keycloak-openapi's Issues

Response types in 23.0.0 are incorrect.

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.

Wrong type in RealmRepresentation/components and ComponentExportRepresentation/{config,subComponents}

 "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"
+       }
      }
    }

Errors in schemas

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

Keycloak 24

Could you generate files for Keycloak 24?

Wrong enums with extra `(N)`

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"
           ],

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.