Skip to content

validation error while importing an invalid maintenance payload #438

@valeriocomo

Description

@valeriocomo

Description

Starting from #386 , importing an invalid maintenance will cause a validation error due to invalid item in a maintenance.contacts or in maintenance.contractors.

At present, the editor can import a publiccode.yml with both maintenance.contacts and maintenance.contractors lists populated, regardless of the value of maintenance.type. The user will only be shown the list with the value of maintenance.type, but will not be able to operate on the values that cause validation to fail.

Step to reproduce

  1. Run the editor
  2. Click on Load button, then click on File
  3. Click on Browse and import a file. Use the one attached below

publiccode-opencultura-de.yml.zip

  1. Click on import

Actual Behaviour

Validation will fail because of a wrong maintenance payload. The user can't fix this problem without workaround.

Actual Behaviour

The editor should have a way to fix this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions