Closed RReverser closed 1 year ago
Note: best to review in whitespace-ignoring mode (https://github.com/ASCOMInitiative/ASCOMRemote/pull/39/files?w=1) as my editor trimmed various unnecessary trailing spaces as part of the same change. I could try to revert those if preferable, but there's no point in keeping those spaces anyway.
This utilises
#/components/responses
section as well asallOf
combinator of OpenAPI v3 to extract common transaction properties (ClientID, ClientTransactionID, ServerTransactionID) and error properties (ErrorNumber and ErrorMessage) from all request and response bodies.This makes the spec about ~2x shorter and should reduce copy-paste mistakes and typos.
Example before:
Example after: