Glossary

Discriminated union

Use a type field to determine which interpretation to apply, and document both schemas with `oneOf` in OpenAPI. 2. **Separate endpoints** — Create different API paths for different record interpretations. 3. **Flatten** — Return all possible fields, with unused ones set to null. This is the laziest

Learn More

Related Terms