smatteoda
3 years agoNew Contributor
Using 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?