RapiDoc icon indicating copy to clipboard operation
RapiDoc copied to clipboard

Improve examples generation

Open j3rem1e opened this issue 2 years ago • 2 comments

  • Generate "additionalProperties" examples. Support the vendor extension "x-additionalPropertiesName"
  • Use the default value if provided
  • Generate null instead of a (potentially) invalid string if the type is not found (same behavior here as redoc and others)

j3rem1e avatar Aug 12 '23 16:08 j3rem1e

Honestly, I totally agree with you, but I tried to keep the compatibility with a project which looks like to share the same codebase (openapi-explorer) and uses this lib.

I`ll will change the PR however to use the lib you propose,

j3rem1e avatar Aug 19 '23 14:08 j3rem1e

share the same codebase (openapi-explorer) and uses this lib

Wow, I didn't know there was a fork! I just made a PR for them to switch the lib too: https://github.com/Rhosys/openapi-explorer/pull/180 and mention rapidoc attribution: https://github.com/Rhosys/openapi-explorer/issues/181

llllvvuu avatar Aug 19 '23 15:08 llllvvuu

@j3rem1e Thanks for the PR. I am sorry for the delay in accepting the PR. Our team has started to resume work on this library

mrin9 avatar Jul 04 '24 15:07 mrin9