File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1818require 'json'
1919require 'yaml'
2020
21- require 'json_schema'
2221require 'language_list'
2322
2423# This library provides a Ruby interface to manipulate CITATION.cff files. The
2928module CFF
3029 SCHEMA_PATH = ::File . join ( __dir__ , 'schema' , '1.2.0.json' ) # :nodoc:
3130 SCHEMA_FILE = JSON . parse ( ::File . read ( SCHEMA_PATH ) ) # :nodoc:
32- SCHEMA = JsonSchema . parse! ( SCHEMA_FILE ) # :nodoc:
3331end
3432
3533require 'cff/version'
Original file line number Diff line number Diff line change 1414# See the License for the specific language governing permissions and
1515# limitations under the License.
1616
17+ require 'json_schema'
18+
1719##
1820module CFF
1921
2022 # Methods to validate CFF files/models against a formal schema.
2123 module Validatable
2224
25+ # :nodoc:
26+ SCHEMA = JsonSchema . parse! ( SCHEMA_FILE )
27+
2328 # :call-seq:
2429 # validate!(fail_fast: false)
2530 #
You can’t perform that action at this time.
0 commit comments