Skip to content

Library add apis should process everything before return an error #449

Closed
devfile/library
#86
@yangcao77

Description

@yangcao77

Add apis tend to return on first error, rather than process everything provided.
For example, pass in 5 components, 4 will be added if the 5th is a duplicate but only 1 will be added if the 2nd is a duplicate.

Expected behavior:
add apis should process everything before return. Any valid elements will be added to the devfileObj, and each invalid element will have an error message. the returned error message should be contain all errors

Metadata

Metadata

Assignees

Labels

area/libraryCommon devfile library for interacting with devfileskind/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions