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

Create custom linter for SpaceAPI types #7

Open
dbrgn opened this issue Nov 14, 2015 · 3 comments
Open

Create custom linter for SpaceAPI types #7

dbrgn opened this issue Nov 14, 2015 · 3 comments

Comments

@dbrgn
Copy link
Collaborator

dbrgn commented Nov 14, 2015

E.g. a contact object must contain at least one contact.

http://spaceapi.net/documentation

@dbrgn
Copy link
Collaborator Author

dbrgn commented Nov 18, 2015

This ticket is still from back when we had a single codebase.

Now that this is a separate crate, it's probably very difficult to implement. Or do you know of a possibility to do this in crates that just use the spaceapi crate?

@rnestler
Copy link
Member

We could do it with macros, so that you have to use the macros to create objects.

@dbrgn
Copy link
Collaborator Author

dbrgn commented Nov 18, 2015

Ah, that's an interesting approach :) Or to allow both models: Create a spaceapi_validate!() macro that you can put around the constructor.

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