Closed PawelSuwinski closed 1 year ago
Required referenced fields are not marked as required by InputGuesser:
For example field form parsed from hydra:
{ name: "sourceLanguage", (...) embedded: null, required: true, maxCardinality: 1, deprecated: false }
Looks like this: SwaggerUI recognizes it correctly:
It seems that validation prop should be passed directly to Input field component, not to ReferenceInput wrapper. With that change all works fine.
Thanks @PawelSuwinski.
Required referenced fields are not marked as required by InputGuesser:
For example field form parsed from hydra:
Looks like this:
SwaggerUI recognizes it correctly:
![obraz](https://user-images.githubusercontent.com/1256986/190612382-cdd73611-4ba0-42e2-9141-ea1158dba4c0.png)
It seems that validation prop should be passed directly to Input field component, not to ReferenceInput wrapper. With that change all works fine.