jonthegeek / rapid

R 'API' documents
https://rapid.api2r.org/
Other
6 stars 1 forks source link

one_of #17

Open jonthegeek opened 1 year ago

jonthegeek commented 1 year ago

As a(n) API designer, I specify that a schema uses one of a set of other schemas, so that I can quickly define validation.

jonthegeek commented 1 year ago

This, #16, and #15 should probably be both classes and functions. At least that's what I thought when I made a note in the "TODO" section of rapid.

jonthegeek commented 1 year ago

one_of is a straight up S7 union.