Sha256: 1c31706e2ebfd7d2474a6c20ebff0930ba87da157a6fef3ecc4e4c9df069649c
Contents?: true
Size: 458 Bytes
Versions: 3
Compression:
Stored size: 458 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}/ ) end end RUBY end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cocina-models-0.88.0 | lib/cocina/generator/datatype.rb |
cocina-models-0.87.1 | lib/cocina/generator/datatype.rb |
cocina-models-0.87.0 | lib/cocina/generator/datatype.rb |