Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 2.0 #17

Open
matiaslopezd opened this issue Mar 6, 2024 · 1 comment
Open

Version 2.0 #17

matiaslopezd opened this issue Mar 6, 2024 · 1 comment
Assignees
Labels
proposal: draft Proposal feature in draft stage

Comments

@matiaslopezd
Copy link
Member

Iterate

Object with type as SchemaType
Array of Object with type as SchemaType

An object without type instance of SchemaType or Array

No iterate

SchemaType
Array with SchemaType

@matiaslopezd matiaslopezd added the proposal: draft Proposal feature in draft stage label Mar 6, 2024
@matiaslopezd matiaslopezd self-assigned this Mar 6, 2024
@matiaslopezd
Copy link
Member Author

Version 1 when iterating over schema does not execute functions and does not take the dummy key inside an array

myKey: {
   type: [
      {
         type: String,
         dummy: 'myKey' // <--- does not detect this
      }
   ],
   dummy: 'random' // <--- only consider this key
}

I think we need to define which key is the priority, maybe the dummy key in the root could override the single element of the array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal: draft Proposal feature in draft stage
Projects
None yet
Development

No branches or pull requests

1 participant