-
Notifications
You must be signed in to change notification settings - Fork 853
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
JsonSchema support for YARP configuration #1350
Comments
I wasn't aware of any json schema. It seems to be still in draft. I wonder if the docs may be sufficient in the meantime - especially https://microsoft.github.io/reverse-proxy/articles/config-files.html#all-config-properties |
Thank you for the docs. They are very useful. I guess my idea is to enable autocompletion and validation based on "$schema". So the developer workflow might look like this:
Please feel free to close the issue if you don't find the proposal useful or valuable for overall developer experience. |
If IDEs support it widely, I think it would be worth adding. I was just not aware of such feature. |
Triage: AppSettings.json already has this. It should be extension of that. |
We need to extend schemastore/appsettings.json. I would suggest that we use a |
Hi @samsp-msft, @adityamandaleeka and @NikiforovAll, Why extend Thanks |
I went ahead and wrote the spec up if anyone wants it. Feel free to use it https://github.com/Arcalise08/YarpJsonSchema/blob/main/yarp.schema.json |
VS has a new feature for Aspire where components can supply config schema files, so it doesn't need to have one big uber schema. Notes from a chat with Eric on how this works in Aspire:
|
Hi,
I've created a separate configuration file that looks something like this:
I'm new to YARP, so I don't know the configuration of my head. It would be awesome to have suggestions based on JSON schema support.
e.g: "$schema": "http://https://microsoft.github.io/reverse-proxy/schemas/routes.conf.json",
The text was updated successfully, but these errors were encountered: