Closed rhyslbw closed 3 years ago
I am not 100% positive about how to handle /document that one. In principle, faults only occurs when clients submit invalid queries; that can occur pretty much in any request and the behavior is specified by the WSP specification.
However, it could be indeed document as a top-level definition in the json-schema, since the different type of client faults are known already and could be listed. Is this what you're suggesting?
Is this what you're suggesting?
Yes. It means the possible response is then included in any generated code that uses the JSON-WSP schema as a source.
Now documented as a top-level definition in the schema (Fault
): https://github.com/KtorZ/cardano-ogmios/commit/4fcb0437d7935d71a8c9c1cdf2c75af21a5c5e02
What Git revision are you using?
b3eb7596661be2a5d013a321f0dc8fbec781d492
What operating system are you using, and which version?
Describe what the problem is?
The following response was returned when calling an unknown query:
... however there is no definition in the schema and therefore unexpected.
What should be the expected behavior?
Faults definitions in the schema, as per https://handwiki.org/wiki/JSON-WSP