Skip to content

Provide curve metadata when curve needs no market data - #2788

Open
vedjaw wants to merge 1 commit into
OpenGamma:mainfrom
vedjaw:fix/curve-inputs-empty-metadata
Open

Provide curve metadata when curve needs no market data#2788
vedjaw wants to merge 1 commit into
OpenGamma:mainfrom
vedjaw:fix/curve-inputs-empty-metadata

Conversation

@vedjaw

@vedjaw vedjaw commented Aug 1, 2026

Copy link
Copy Markdown

Summary

  • RatesCurveGroupMarketDataFunction.curveInputs used RatesCurveInputs.builder().build() for curve definitions that do not require market data. That left curveMetadata null and failed validation with “Argument 'curveMetadata' must not be null”.
  • Build empty inputs with RatesCurveInputs.of(ImmutableMap.of(), DefaultCurveMetadata.of(curveDefn.getName())) instead.

Test plan

  • RatesCurveGroupMarketDataFunctionTest.curveDefinitionWithoutMarketDataNodes
  • CI measure module tests

Fixes #2743

Made with Cursor

RatesCurveInputs.builder().build() left curveMetadata null, which fails
validation when a CurveDefinition has no nodes (or nodes with empty
requirements). Build empty inputs with DefaultCurveMetadata of the curve name.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Logic for Curvedefinition without nodes seems to fail

1 participant