-
Notifications
You must be signed in to change notification settings - Fork 764
Closed
Labels
Description
- OS: macOS
- Environment: Chrome 91.0.4472.114, Node.js v12.6.1
- Method of installation: yarn
- Swagger-Client version: ^3.13.5
- Swagger/OpenAPI version: OpenAPI 3.0
Content & configuration
Swagger/OpenAPI definition:
---
openapi: 3.0.0
info:
title: Cloudpotato - Medwork
description: The Cloudpotato API
version: 1.0.3
contact: {}
tags: []
servers: []
paths:
"/v1/clients/{id}/groups":
get:
operationId: getGroups
summary: ''
parameters:
- name: options
required: false
in: query
schema:
type: string
- name: id
required: true
in: path
schema:
type: number
responses:
'200':
description: ''
tags:
- clients
security:
- bearer: []
"/v1/groups":
get:
operationId: getGroups
summary: ''
parameters: []
responses:
'200':
description: ''
tags:
- groups
security:
- bearer: []Swagger-Client usage:
const client = await new Swagger({
url: REACT_APP_URL_SPEC,
usePromise: true,
requestInterceptor: SDK._requestInteceptor,
skipNormalization: true,
});Describe the bug you're encountering
The skipNormalization property is suppose to skip the normalization for the duplicated tags that comes in the spec. This is not working as it should.
To reproduce...
Steps to reproduce the behavior:
- Get a spec with duplicated tags. For example the one above.
- Set the skipNormalization property.
Expected behavior
The const declared above, should have a property like:
client.api.client.getGroups
and
client.api.group.getGroups
However these are the props:
client.api.client.getGroups
and
client.api.group.getGroups1