Le jeudi 22 mars 2018 14:57:15 UTC+1, [email protected] a écrit :
>
> Hi
> Can someone help me with the below error?
> Regards
> Vimal
>
> Schema error at
> paths['/npcf_smpolicycontrol/v1/sm_policies/{smPolicyId}'].post.parameters[6]should
>
> NOT have additional properties additionalProperty: schema, in, name,
> description
> Jump to line 66
>
>
>
> - in: query
> name: snssai
> description: slice id/differentiator
> schema:
> $ref: '#/components/schemas/Snssai'
>
>
> components:
> schemas:
> Snssai:
> type: object
> properties:
> sst:
> type: integer
> format: u32int
> sd:
> type: integer
> format: u32int
>
It doest not works in Swagger 2.0
you should use it like so in swagger 3.0
- name : snssai
in: query
description: slice id/differentiator
schema:
$ref: '#/components/schemas/Snssai''
components:
schemas:
Snssai:
type: object
properties:
sst:
type: integer
format: u32int
sd:
type: integer
format: u32int
--
You received this message because you are subscribed to the Google Groups
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.