-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat(validation): #217 handle multi model validation (not delimited) #271
feat(validation): #217 handle multi model validation (not delimited) #271
Conversation
…on into files.ReadOscalFile refactor(validation_command): extract the validition logic after reading oscal file into ValidationCommandWithModel
// Validate each model | ||
for _, m := range models { | ||
// get the key (model type), at this point is the only one | ||
modelType, _ := model.GetModelType(m) | ||
|
||
// TODO: get input on path format (current: multiple_model.json#component-definition) | ||
pathWithType := fmt.Sprintf("%s#%s", inputFile, modelType) | ||
validationResponse, err := ValidationCommandWithModel(pathWithType, m) | ||
// TODO: should we bail on non-validation errors? | ||
if err != nil { | ||
return responses, err | ||
} | ||
responses = append(responses, validationResponse) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specific feedback/thoughts requested marked by TODO
@CloudBeard Should be enough there to see what changes or additional functionality you might want. @defenseunicorns/lula-dev Not sure about the
|
Closing as it is no longer relevant. |
Description
#217
Type of change
Checklist before merging