zalando / zally

A minimalistic, simple-to-use API linter
https://zalando.github.io/zally
MIT License
909 stars 145 forks source link

How to get value of $ref field from Context.api ? #1503

Open saloniudani opened 4 months ago

saloniudani commented 4 months ago

I am trying to create a custom rule where I want to get all properties which uses $ref to refer some other object. I want to get the value of $ref field and also the property name. If I am using context.api.getAllProperties() then I get fully resolved properties with all null ref.

ePaul commented 2 weeks ago

Hi, did you solve your question, or is it still open? If the latter, could you post a piece of code showing what you want to do?