rapi-doc / RapiDoc

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

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

Closed peterlitvak closed 1 month ago

peterlitvak commented 1 year 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 1 year ago

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

nahidakbar commented 2 months ago

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

mrin9 commented 2 months 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