-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Python] python regex validation generation (#11525)
* fix: python regex validation generation * docs: updated comment to be more specific * fix: check the right value used when generating the regex
- Loading branch information
1 parent
d45cb65
commit 0d4dba1
Showing
4 changed files
with
35 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
modules/openapi-generator/src/test/resources/3_0/issue_11521.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
openapi: 3.0.0 | ||
info: | ||
description: a spec to test free form object models | ||
version: 1.0.0 | ||
title: OpenAPI Petstore | ||
license: | ||
name: Apache-2.0 | ||
url: "https://www.apache.org/licenses/LICENSE-2.0.html" | ||
tags: [] | ||
paths: {} | ||
components: | ||
schemas: | ||
DateTimeObject: | ||
properties: | ||
datetime: | ||
type: string | ||
pattern: '[\d]{4}-[\d]{2}-[\d]{2}T[\d]{1,2}:[\d]{2}Z' |