Which version of the editor do you use? I checked with the online one and I’m
getting no such validation error.
From: on behalf of
"galynamudry...@gmail.com"
Reply-To: "swagger-swaggersocket@googlegroups.com"
Date: Friday, February 9, 2018 at 08:33
To: Swagger
Subject: Swagger Editor Validation Error- "pattern" should match format "regex"
Hello,
When i check my swagger code in a swagger editor I always receive the same
validation error:
Schema error at definitions ... .pattern
should match format "regex"
format: regex
Structure of my object:
Object:
type: object
title:
required:
- wheel
- window
properties:
wheel:
type: string
title: Wheel
description: Wheel
pattern: '^\d{3}-\d{2}-\d{4}$'
example: Wheel
window:
type: string
title: Window
description: Window
pattern: '^\d{3}-\d{2}-\d{4}$'
example: Window
Could you help me please to resolve this problem?
P.S. I'm using swagger 2.0
Regards, Galyna
--
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 swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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 swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.