Skip to content

Commit

Permalink
Improved the validation of compiled schema files.
Browse files Browse the repository at this point in the history
Signed-off-by: Hermann Mayer <[email protected]>
  • Loading branch information
Jack12816 committed Jul 3, 2024
1 parent a73cef8 commit 8d68682
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
### next

* Moved the schema file validation into the retry block for parallel execution
(#36)
* Updated the [Kafka Playground](./doc/kafka-playground) to the latest
Apache Kafka (3.7) and Schema Registry (7.6) versions (#35)

Expand Down
5 changes: 2 additions & 3 deletions lib/rimless/avro_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ def render_file(src)
FileUtils.mkdir_p(File.dirname(dest))
# Write the rendered file contents to the destination
File.write(dest, ERB.new(File.read(src)).result(binding))
# Check the written file for correct JSON
validate_file(dest)
end

# Check the written file for correct JSON
validate_file(dest)
end

# Check the given file for valid JSON.
Expand Down

0 comments on commit 8d68682

Please sign in to comment.