Contributions
Re: Using path parameters in domains
Hi, The parameter is defined in the domain as local anchor- $ref: '#/components/parameters/IsoCodePathParam' whereStates is defined. The API would later be paths: /some/new/path/{isoCode} $ref: '........#/components/pathitems/States' But, I have not defined the API yet, just the domain... and it´s in the domain file I get the error. I´m attaching my file for reference...1.2KViews0likes1CommentUsing path parameters in domains
Hi, trying to use a path parameter in a Domain like: States: get: tags: - meta summary: Get states by country security: - ApiKeyAuth: [ ] operationId: getStatesByCountry description: | Get states by country parameters: - $ref: '#/components/parameters/IsoCodePathParam' parameters: IsoCodePathParam: in: path name: isoCode required: true description: Country ISO code schema: type: string example: ES Offers an error:Path parameter "isoCode" must have the corresponding {isoCode} segment in the "pathitems" path Since in Domains, I can only have PathItems, like "States", and not paths.... how do I specify the segment?1.3KViews0likes5Comments