anchor.diff:    NewSpec :: map().
   prepare_new_global_spec(CurrentSpec, Definitions) ->
     case swagger_version() of
  -    ?SWAGGER_2_0 ->
  +    swagger_2_0 ->
         CurrentSpec#{definitions => Definitions
                     };
  -    ?OPENAPI_3_0_0 ->
  +    openapi_3_0_0 ->
         CurrentSpec#{components =>
                       #{ schemas => Definitions
                        }
  
positive.code: -type metadata() :: trails:metadata(swagger_map()).
  -export_type([swagger_map/0, metadata/0]).
  
  -define(SWAGGER_2_0, swagger_2_0).
  -define(OPENAPI_3_0_0, openapi_3_0_0).
  -type swagger_version() :: ?SWAGGER_2_0
                           | ?OPENAPI_3_0_0.
  -export_type([swagger_version/0]).
  
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  
negative.code:   map().
  schema(DefinitionName) ->
    case swagger_version() of
      swagger_2_0 ->
        #{<<"$ref">> => <<"#/definitions/", DefinitionName/binary>>};
      openapi_3_0_0 ->
        #{<<"$ref">> => <<"#/components/schemas/", DefinitionName/binary>>}
    end.
  
  