Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Test-Json : Add parameter for JSON data file #15544

Copy link
Copy link
@GlenAppleton

Description

@GlenAppleton
Issue body actions

Summary of the new feature/enhancement

The Test-Json command already allows for both a file or a string for the schema definition. Please do the same for the actual JSON data being tested. For example:

Test-Json -JsonFile .\MyData.json -SchemaFile .\MySchema.json

Proposed technical implementation details (optional)

This new parameter would be an alternative method to having to load the data in a separate command into a variable using Get-Content -Raw, and it would be consistent with the alternative method already provided for the schema data.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.The issue is fixed.WG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility modulecmdlets in the Microsoft.PowerShell.Utility module

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.