Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
json-schema-faker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fork
json-schema-faker
Commits
e0ecefff
Commit
e0ecefff
authored
10 years ago
by
Alvaro Cabrera
Browse files
Options
Downloads
Patches
Plain Diff
Basic impl for patternProperties
parent
42a127ef
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/types/object.js
+0
-0
0 additions, 0 deletions
lib/types/object.js
spec/core/types/objects.json
+11
-0
11 additions, 0 deletions
spec/core/types/objects.json
with
11 additions
and
0 deletions
lib/types/object.js
+203 B (+30%)
View file @
e0ecefff
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
This diff is collapsed.
Click to expand it.
spec/core/types/objects.json
+
11
−
0
View file @
e0ecefff
...
...
@@ -14,6 +14,17 @@
"required"
:
[
"one"
,
"three"
]
},
"valid"
:
true
},
{
"description"
:
"should handle patternProperties"
,
"schema"
:
{
"type"
:
"object"
,
"patternProperties"
:
{
"a\\w{4,12}"
:
{
"type"
:
"string"
},
"xy-[a-f\\d]{4}-n[pqrz]"
:
{
"type"
:
"string"
}
}
},
"valid"
:
true
}
]
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment