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

Properly document field referencing rules #17

Open
roblabla opened this issue Feb 27, 2017 · 3 comments
Open

Properly document field referencing rules #17

roblabla opened this issue Feb 27, 2017 · 3 comments

Comments

@roblabla
Copy link
Contributor

Most important are :

  • Document properly what field referencing is (compareTo, count field, etc...)
  • Specify how to go up the hierarchy with super
  • Specify what datatype influence super
  • etc...
@rom1504
Copy link
Member

rom1504 commented Feb 28, 2017

https://github.com/ProtoDef-io/ProtoDef/blob/master/schemas/definitions.json#L5 is the only place where it's documented atm
do we have super ?

@roblabla
Copy link
Contributor Author

roblabla commented Feb 28, 2017

I am so confused about how everything works. According to https://github.com/ProtoDef-io/node-protodef/blob/master/src/utils.js#L1, getField, parses things like "../../some/field"

EDIT: Wait no. It actually does this : if it starts with a /, it goes back to the root context. Otherwise, it is relative, just like a normal path.

@rom1504
Copy link
Member

rom1504 commented Feb 28, 2017

Oh yeah we do handle .. which is super.

Ok yes that definitely needs documenting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants