rapi-doc / RapiDoc

RapiDoc -WebComponent for OpenAPI Spec
https://rapidocweb.com
MIT License
1.65k stars 277 forks source link

The "format": "uuid" in the request body object's schema, causes component to hang #972

Open peterlitvak opened 11 months ago

peterlitvak commented 11 months ago

We have the following request body object's schema.

"MyRequest": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string"
          },
          "someUuid": {
            "type": "string",
            "format": "uuid"
          }
        }
      }

This causes the web component to hang on load. No errors or any other console output. The problem seems to be a "format": "uuid" which is auto-generated for the Java UUID type fields in the request object. According to the spec https://swagger.io/specification/ the uuid format should be supported. Even if not supported, it should not cause the component to hang but use some default form of rendering.

gsheldon commented 10 months ago

This is a major problem for us also, it would be great to have this issue resolved.

nahidakbar commented 1 week ago

Bumped into this as well. Did workaround using pattern...does not look as neat.

mrin9 commented 1 week ago

I am unable to recreate it at my end using v9.3.6 can you provide me a small but complete (not partial) spec through which i can recreate the issue ?

This test-case which contains uuid in the response schema works as expected and the spec used for this can be found https://github.com/rapi-doc/RapiDoc/blob/master/docs/specs/data-types-simple.yaml