bolt icon indicating copy to clipboard operation
bolt copied to clipboard

allow wildcard properties in type statement

Open rbellens opened this issue 5 years ago • 5 comments

Currently it is not allowed to have both wildcard properties and fields. Therefore, it is not possible to define types that allow properties other than the ones defined in the type statement. Only workaround is to not use type statements and manually define the validate rules, which is very cumbersome. See also issues #212 and #213 .

This pull request allows a single wildcard property inside a type definition and when present disables the generation of the default validation rule that does not allow any field other than the ones defined.

rbellens avatar Aug 22 '18 13:08 rbellens

@rbellens Are you still maintaining this PR? If not I might have some free time to continue where you left off

dengjeffrey avatar Jan 05 '19 23:01 dengjeffrey

@dengjeffrey feel free to do so

rbellens avatar Jan 14 '19 13:01 rbellens

Can we have this feature soon, please :)

iamareebjamal avatar May 18 '19 16:05 iamareebjamal

Hey can we revive this PR?

debkanchan avatar Apr 24 '20 10:04 debkanchan

The continuous-integration/travis-ci/pr failure from the integration check isn't related to this PR--it's an issue with [email protected]'s dependency on graceful-fs.

Here's a detailed explanation on StackOverflow with some workarounds: https://stackoverflow.com/questions/55921442/how-to-fix-referenceerror-primordials-is-not-defined-in-node.

acorn1010 avatar Jun 10 '20 07:06 acorn1010