OpenRPC schema validation #588
-
Hello,
This is validated with the OpenRPC meta schema: The meta schema doesn't allow additional properties like "definitions". Is there an easy way to validate parameters of incoming messages without building a new schema out of the OpenRPC definition?
I am using version 1.1.0 with MSVC and C++23. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
As I understand it, OpenAPI 3.1 JSON Schema Dialects are compatible with the JSON Schema core architecture, but may add keywords, remove keywords, or modify the behavior of keywords. Comparing with I can put this on the list as something to look into, but it will likely take a while. |
Beta Was this translation helpful? Give feedback.
My (basic, no production code) solution was just building a new schema.
It just takes all parameters and moves them to "properties" and moves all schemas to "$defs". It also changes the path of all references from the OpenRPC root "#/components/schemas/" to the valid schema root "#/$defs/".