Skip to content

Conversation

@BelhsanHmida
Copy link
Contributor

Description

This PR enhances the documentation of forecasting parameters by improving the metadata defined in ForecasterParametersSchema. Each field now includes:

  • Detailed description similar to cli params description
  • Example values
  • The default values of some params if available

This improves the generated OpenAPI specification, makes the API more self-documenting, and helps developers and users understand how each forecasting parameter behaves without referring to the CLI code

Related Items

closes #1815


Sign-off

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on code under GPL or other license that is incompatible with FlexMeasures

…lds in ForecasterParametersSchema

Signed-off-by: Mohamed Belhsan Hmida <[email protected]>
…dd field defaults

Signed-off-by: Mohamed Belhsan Hmida <[email protected]>
@BelhsanHmida BelhsanHmida self-assigned this Nov 19, 2025
@BelhsanHmida BelhsanHmida requested a review from Copilot November 19, 2025 05:45
Copilot finished reviewing on behalf of BelhsanHmida November 19, 2025 05:47
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the documentation of forecasting parameters in the ForecasterParametersSchema class by adding comprehensive metadata to each field, including descriptions, example values, and default values where applicable. This improves the auto-generated OpenAPI specification and makes the API more self-documenting for developers.

Key changes:

  • Added detailed metadata dictionaries to all schema fields with descriptions and examples
  • Documented default values for parameters throughout the schema
  • Improved formatting and readability by expanding field definitions across multiple lines

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@read-the-docs-community
Copy link

read-the-docs-community bot commented Nov 19, 2025

Documentation build overview

📚 flexmeasures | 🛠️ Build #30601347 | 📁 Comparing 021a33b against latest (eeffc62)


🔍 Preview build

Show files changed (1 files in total): 📝 1 modified | ➕ 0 added | ➖ 0 deleted
File Status
api/v3_0.html 📝 modified

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.

Add metadata descriptions to forecasting schema fields

2 participants