Skip to content

Manifest Validation fails with "Invalid escape" in v1.24 schema (MS Teams Toolkit / Visual Studio) #192

@krisztianjofoldi

Description

@krisztianjofoldi

When using the Microsoft 365 Developer Tooling (Teams Toolkit) in Visual Studio to provision a Teams app, manifest validation fails with the following error:

Manifest Validation is unsuccessful! Unable to get schema from https://developer.microsoft.com/en-us/json-schemas/teams/v1.24/MicrosoftTeams.schema.json, message: Invalid regular expression: /^(?!.*[\r\n\f\b\v\a\t])[\S]*\.xll$/: Invalid escape

It appears that the schema at v1.24 contains a regular expression with escape sequences (\a, \v) which are not valid in JavaScript regular expressions, causing validation to crash.

To Reproduce

  1. Use Visual Studio 2022 with M365 Teams Toolkit
  2. Create or update a Teams app project and set manifest schema to v1.24
  3. Run provision/validate manifest
  4. Observe manifest validation fails on fetching the remote schema

Workarounds tried

Using schema version v1.23 is unsuccessful
Using schema version v1.22 is successful (no error)
Manifest is unchanged—error occurs even with official sample manifests

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions