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

Getting warning message "Matches multiple schemas when only one must validate." in host.json file #121718

Closed
ikhtesam opened this issue Apr 17, 2024 · 3 comments

Comments

@ikhtesam
Copy link

I have created a default python v2 http triggered function in vs code. When I clicked on host.json file, I can see Matches multiple schemas when only one must validate. warning message.

host.json-

{
    "version": "2.0",
    "logging": {
      "applicationInsights": {
        "samplingSettings": {
          "isEnabled": true,
          "excludedTypes": "Request"
        }
      }
    },
    "extensionBundle": {
      "id": "Microsoft.Azure.Functions.ExtensionBundle",
      "version": "[4.*, 5.0.0)"
    }
  }
image

It looks correct and matches with the ms doc but still throwing warning. My function works as expected after having the warning message.

I tried to restart the vs code and Azure function extension too but neither helped.

I am using latest version of vs code(1.88.1) and latest core tool as well.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

@PesalaPavan
Copy link
Contributor

@ikhtesam
Thanks for your feedback! We will investigate and update as appropriate.

@RyanHill-MSFT
Copy link
Contributor

I encountered the same issue @ikhtesam. However, it's more related to the Functions extensions tooling. I've created a new issue in that repo linking this issue. Please feel free to follow that one.

#please-close

@RyanHill-MSFT
Copy link
Contributor

Hi @ikhtesam, the issue I created was resolved. It comes down to multiple extensions adding a validation schema. So, you can disable extensions you don't need on that workspace, like Logic Apps.

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

No branches or pull requests

4 participants