Class: KwalifyToJsonSchema::CustomProcessing
- Inherits:
-
Object
- Object
- KwalifyToJsonSchema::CustomProcessing
- Defined in:
- lib/kwalify_to_json_schema/custom_processing.rb
Overview
Template class for custom processing
Instance Method Summary collapse
-
#postprocess(json_schema) ⇒ Object
The method will be called after the conversion allowing to customize the output JSON schema.
-
#preproces(kwalify_schema) ⇒ Object
The method will be called before conversion allowing to customize the input Kwalify schema.
Instance Method Details
#postprocess(json_schema) ⇒ Object
The method will be called after the conversion allowing to customize the output JSON schema. The implementation have to return the modified schema. The default implemention don’t modify the schema.
12 |
# File 'lib/kwalify_to_json_schema/custom_processing.rb', line 12 def postprocess(json_schema); json_schema; end |
#preproces(kwalify_schema) ⇒ Object
The method will be called before conversion allowing to customize the input Kwalify schema. The implementation have to return the modified schema. The default implemention don’t modify the schema.
7 |
# File 'lib/kwalify_to_json_schema/custom_processing.rb', line 7 def preproces(kwalify_schema); kwalify_schema; end |