LiveRamp / reslang

A language for describing resource-oriented APIs & turning them into Swagger or resource diagrams. Oriented around the concepts we want to expose in the APIs.
Apache License 2.0
23 stars 7 forks source link

Merge pagination params directly into schema #167

Closed cjea closed 3 years ago

cjea commented 3 years ago

Slackground: https://liveramp.slack.com/archives/CPBAEKS9X/p1606844746397000

The recommended way to implement inheritance in openapi seems to break some codegen. Instead, merge the pagination params directly into the multi-response schema. This means that instead of making a ref/MultiResponse and then wrapping it with an allOf, we instead put the _pagination block directly in ref/MultiResponse.

ops-github-DU4JOAWE commented 3 years ago

This change is Reviewable