lib/ogc/gml/reference.rb in ogc-gml-1.0.0 vs lib/ogc/gml/reference.rb in ogc-gml-1.0.1
- old
+ new
@@ -1,15 +1,14 @@
# frozen_string_literal: true
-# --- reference_type.rb ---
-require "shale"
+require "lutaml/model"
module Ogc
module Gml
- class Reference < Shale::Mapper
- attribute :owns, Shale::Type::Boolean, default: -> { "false" }
- attribute :nil_reason, Shale::Type::Value
- attribute :remote_schema, Shale::Type::Value
+ class Reference < Lutaml::Model::Serializable
+ attribute :owns, :boolean, default: -> { false }
+ attribute :nil_reason, :string
+ attribute :remote_schema, :string
xml do
root "statusReference"
namespace "http://www.opengis.net/gml/3.2", "gml"