Skip to content

Wrap warnings as well #10

@bfabio

Description

@bfabio

Right now the ValidationException carries the errors like this, but not the warnings (eg. deprecated fields):

try {
    $parser = new Parser();
    $publicCode = $parser->parseFile('/path/to/publiccode.yml');
} catch (ValidationException $e) {
    $e->getErrors()
}

We should have a way to access the warnings as well, maybe via the PublicCode object (publiccode.getWarnings(): ?array) ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions