Skip to content
This repository has been archived by the owner on Jan 22, 2020. It is now read-only.

Extended object.pattern to take both RegExp or [RegExp, schema] #13

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

bldrvnlw
Copy link

For generically defined key and values. Added tests and basic documentation. See also issue #12

…ndefined key, values. Added tests and basic documentation.
…h keys. The original test used only RegExp which did not show the bug.
…atches. Added a new flag, _isType, to the compiled schema to denote this situation and a new makeTypeCheck along with changes to the makeSchemaBuilder to set the flag when appropriate. If _isType is present the schema.checks are applied but the keys and pattern checks can be skipped if the correct object instance is present.
…ternatives). package-lock.json added by latest npm
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant