Sha256: d05848873a3971db746f83c91a70d5aa666be22019b59381ffc54974c147d653
Contents?: true
Size: 459 Bytes
Versions: 81
Compression:
Stored size: 459 Bytes
Contents
# frozen_string_literal: true module Cocina module Generator # Class for generating from an openapi schema class Datatype < SchemaBase def generate <<~RUBY # frozen_string_literal: true module Cocina module Models #{name} = Types::String.constrained( format: /#{schema_doc.pattern}/i ) end end RUBY end end end end
Version data entries
81 entries across 81 versions & 1 rubygems