anchor.diff:  -spec swagger_version() -> swagger_version().
   swagger_version() ->
     case application:get_env(cowboy_swagger, global_spec, #{}) of
  -    #{openapi := "3.0.0"} -> ?OPENAPI_3_0_0;
  -    #{swagger := "2.0"}   -> ?SWAGGER_2_0;
  -    _Other                -> ?SWAGGER_2_0
  +    #{openapi := "3.0.0"} -> openapi_3_0_0;
  +    #{swagger := "2.0"}   -> swagger_2_0;
  +    _Other                -> swagger_2_0
     end.
   
   %% @private
  
positive.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.
  
  
negative.code:   NewSpec :: map().
  prepare_new_global_spec(CurrentSpec, Definitions) ->
    case swagger_version() of
      swagger_2_0 ->
        CurrentSpec#{definitions => Definitions
                    };
      openapi_3_0_0 ->
        CurrentSpec#{components =>
                      #{ schemas => Definitions
                       }
  