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.

Reply via email to