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

reslang should honor modifiers for inlined attributes #66

Closed khardaw closed 4 years ago

khardaw commented 4 years ago

Currently if you define a structure like this

structure AudienceFieldInfo { a: int output // on GET only b: mutable output // on PUT, PATCH and GET c: string optional-post }

and include it in a resource

resource Audience::Field { audienceFieldInfo: AudienceFieldInfo }

The modifies on parameters in the AudienceFieldInfo aren't respected. Optional will work since it's set on the structure but mutable and output are not respected. The POST endpoint will still include parameters marked output.

liveandrew commented 4 years ago

fixed in commit 48e73d157547e485a46d15cc3f4dcac93c26de5