Module: TypeSpecFromSerializers::RoutePatch

Defined in:
lib/typespec_from_serializers/dsl/routing.rb

Overview

Internal: Patches ActionDispatch::Journey::Route to filter type metadata from requirements.

The requirements method is used for route matching and URL generation. We exclude :__typespec_types to ensure it doesn’t affect routing behavior.

Instance Method Summary collapse

Instance Method Details

#requirementsObject



76
77
78
# File 'lib/typespec_from_serializers/dsl/routing.rb', line 76

def requirements
  super.except(:__typespec_types)
end