cmccabe commented on code in PR #17684: URL: https://github.com/apache/kafka/pull/17684#discussion_r1829717644
########## generator/src/main/java/org/apache/kafka/message/checker/CheckerUtils.java: ########## @@ -91,4 +102,54 @@ static MessageSpec readMessageSpecFromFile(String schemaPath) { throw new RuntimeException("Unable to parse file as MessageSpec: " + schemaPath, e); } } + + /** + * Return a MessageSpec file give file contents. + * + * @param contents The path to read the file from. + * @return The MessageSpec. + */ + static MessageSpec readMessageSpecFromString(String contents) { Review Comment: we don't need to create a file to translate a string to a MessageSpec, we can do this directly. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org