Below is the definition I am using for a request json ,
SampleRequest:
type: object
required:
- version
- lang
- origin
- mobileDeviceIdentifiers
properties:
* version:*
* type: string*
* pattern: (\d+\.)(\d+\.)(\d)*
lang:
type: string
example: fr
origin:
type: string
example: WEB
mobileDeviceIdentifiers:
required:
- uniqueDeviceID
- devicePlatform
- deviceModel
- deviceOSVersion
properties:
uniqueDeviceID:
type: string
example: c3877886787
devicePlatform:
type: string
example: Android
deviceModel:
type: string
example: Nexus 5
deviceOSVersion:
type: string
example: '6.0'
xml:
name: SampleRequest
Swagger documentation does not render a value confirming to the regex '
*(\d+\.)(\d+\.)(\d)'* instead the response is just displayed as below,
<https://lh3.googleusercontent.com/-KrvspzMlFkg/WfdsmnEidcI/AAAAAAAAlFo/gOv49N8yFG04HSH1K8oPmXYLResslUVPgCLcBGAs/s1600/test.png>
Could you please help to resolve ? Thanks.
--
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.