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

(required_field) option is not covered by code generation #148

Open
alexander-yevsyukov opened this issue Nov 6, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@alexander-yevsyukov
Copy link
Collaborator

The option was handled by the runtime validation. It is also covered in a branch of Message.requiresRuntimeValidation() extension in Workaround.kt.

Presumably, requiresRuntimeValidation() returning true should produce the code in the generated validate() method but it does not happen.

Currently, requiresRuntimeValidation() is invoked once in the Validate.violationsOf() method. The violationsOf() method is called in the generated code but it seem to cover only the case of the (validate) option. Please see the following generated stub classes for details:

  • io.spine.test.validate.anyfields.AnyContainer
  • io.spine.validation.test.MeteoStatistics
@alexander-yevsyukov alexander-yevsyukov added the bug Something isn't working label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant