Enabling support for additionalProperties#1449
Merged
Conversation
arcuri82
requested changes
Feb 13, 2026
core/src/main/kotlin/org/evomaster/core/output/dto/DtoWriter.kt
Outdated
Show resolved
Hide resolved
| path.toFile().appendText(testFileContent) | ||
| } | ||
|
|
||
| fun capitalizeFirstChar(word: String) : String { |
Collaborator
There was a problem hiding this comment.
this kind of function should be in a utility class, as can be re-used throughout the codebase. for example, before writing something like this, should check what available in org.evomaster.core.utils... there, you can find StringUtils.capitalization() :)
Collaborator
Author
There was a problem hiding this comment.
Close enough! The capitalization function lowercases the rest of the word, I just want the first char to be capitalized. I'll move the function to StringUtils though.
arcuri82
approved these changes
Feb 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adding support for
additionalPropertiescontaining objects. If the target DTO containsadditionalProperties, then the generated DTO will contain code like:Where
ChildSchemais the nested object represented in theadditionalProperties.