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

Teamwork #50

Open
philsturgeon opened this issue Apr 9, 2019 · 6 comments
Open

Teamwork #50

philsturgeon opened this issue Apr 9, 2019 · 6 comments

Comments

@philsturgeon
Copy link

philsturgeon commented Apr 9, 2019

Hey there! It looks like you and https://github.com/Zooz/express-ajv-swagger-validation are working on the same thing. Maybe you folks could join forces and share the load.

@dietergeerts
Copy link

@philsturgeon , thx for that link. I was looking for a way to add custom keywords (which can be done with AJV and is encouraged by JSON Schema), but it can't be done with this package without any major hacking. The linked package does have support to give all custom keywords needed.

@philsturgeon
Copy link
Author

@dietergeerts great insight! I bet the folks over on that other package haven't ever needed to get custom keywords involved, so I bet they'd be very interested to hear your use case. If this is on the only blocker to letting these packages merge then that's excellent news.

Maybe you could start up an issue to see if they'd be open to a PR covering this?

@kibertoad
Copy link

@philsturgeon
Copy link
Author

@kibertoad I'm talking about whatever type of custom keywords @dietergeerts is talking about. :)

@dietergeerts
Copy link

@philsturgeon , I'm talking about keywords for custom validation. It's one of the options of the package: https://github.com/PayU/openapi-validator-middleware#options. And we need it in our project to add some custom validation to our models. We currently use this package, where this is not possible. So we'll have to use the other package now. I did not check out yet what other difference there are though, so don't know if we'll be missing other things.

@philsturgeon
Copy link
Author

@dietergeerts yes I thought this is what you meant, I was confused about why @kibertoad toad was asking me.

I am also a bit confused about the rest of this conversation. I am suggesting the authors of these two packages collaborate, but you are a user of one package pointing out there is something stopping you from using the other package?

You could either send a PR to the package missing the thing you want if you'd like to use it, or you could... not and continue using the package you are using. Sorry but I don't understand what is being discussed.

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

3 participants