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

Fix cryptic blueprint validation error messages #85

Closed
reimic opened this issue Mar 19, 2024 · 1 comment
Closed

Fix cryptic blueprint validation error messages #85

reimic opened this issue Mar 19, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@reimic
Copy link
Collaborator

reimic commented Mar 19, 2024

When a blueprint fails validation a cryptic error message is returned.

For this failing blueprint (which should not fail, but that is addressed in #83):

$blueprint = BlueprintBuilder::create()
    ->withWordPressVersion( 'https://wordpress.org/latest.zip' )
    ->toBlueprint();
...results in this error:

...this is the error message provided:

Array
(
    [/constants] => Array
        (
            [0] => The data (array) must match the type: object
        )

)

We can, and in fact - we should do better.

@reimic reimic added the enhancement New feature or request label Mar 19, 2024
@adamziel
Copy link
Collaborator

Duplicate of #83

@adamziel adamziel marked this as a duplicate of #83 Mar 19, 2024
@adamziel adamziel closed this as not planned Won't fix, can't repro, duplicate, stale Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants