Re: Swagger Editor Validation Error- "pattern" should match format "regex"

2018-02-12 Thread Ron Ratovsky
Which version of the editor do you use? I checked with the online one and I’m 
getting no such validation error.

 

 

 

From: <swagger-swaggersocket@googlegroups.com> on behalf of 
"galynamudry...@gmail.com" <galynamudry...@gmail.com>
Reply-To: "swagger-swaggersocket@googlegroups.com" 
<swagger-swaggersocket@googlegroups.com>
Date: Friday, February 9, 2018 at 08:33
To: Swagger <swagger-swaggersocket@googlegroups.com>
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.


Swagger Editor Validation Error- "pattern" should match format "regex"

2018-02-09 Thread galynamudryk27
Hello,

When i check my swagger code in a swagger editor I always receive the same 
validation error: 
Schema error at definitions ... .patternshould 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.