kogosoftwarellc / open-api

A Monorepo of various packages to power OpenAPI in node
MIT License
895 stars 237 forks source link

[Bug] Custom formats not working for objects #892

Open WaldoJeffers opened 11 months ago

WaldoJeffers commented 11 months ago

Hello,

It seems custom formats work well for "primitive" types (string, boolean...) but not for objects. The format validator never seems to be called. Is this intentional, or is it a bug?

/* Working ok */
"schema": {
  "type": "object",
  "format": "custom_object"
}   

/* Not working */
"schema": {
  "type": "object",
  "format": "custom_object"
} 

If this is indeed a bug, I'd be willing to work on submitting a PR, if I'm given a few guidelines :)

Thanks :)