Forum Discussion

pradeepnr's avatar
pradeepnr
New Contributor
4 years ago
Solved

traverse/walk through Response schema

what library can I refer to traverse/walk through response schema of each Path?

  • HKosova's avatar
    HKosova
    4 years ago

    Parsers themselves most likely have classes/interfaces that represent OpenAPI Schema Object and that could be used to read schema attributes and access sub-schemas.

5 Replies

    • pradeepnr's avatar
      pradeepnr
      New Contributor

      HKosova, Thankyou very much for responding. I am aware of the parsers. With these parsers I will be able to parse the openAPI 3.0 doc. Is there any library that will use these parsers to traverse through the responses.

      I want to traverse through the response structure to list all the attributes, sub-attributes, sub-sub-...attributes and so on.

       

      Thanks,

      Pradeep

      • HKosova's avatar
        HKosova
        SmartBear Alumni (Retired)

        Parsers should have methods to get the schema for a response. Once you have the response schema you will be able to traverse its properties.