Skip to content

Schema validation fails when using expression #292

@SteveL-MSFT

Description

@SteveL-MSFT

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Steps to reproduce

As part of #291, discovered that if you have a schema that limits property values (like OSInfo resource), then you can't use an expression that would resolve to a valid value since schema validation happens before expression execution.

Expected behavior

Expressions should be executed before schema is validated

Actual behavior

Schema is validated before expression execution

Error details

No response

Environment data

NA

Version

dsc 3.0.0-alpha.5

Visuals

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions