You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gcgj-dify-1.7.0/web/app
QuantumGhost 2c1ab4879f
refactor(api): Separate SegmentType for Integer/Float to Enable Pydantic Serialization (#22025)
refactor(api): Separate SegmentType for Integer/Float to Enable Pydantic Serialization (#22025)

This PR addresses serialization issues in the VariablePool model by separating the `value_type` tags for `IntegerSegment`/`FloatSegment` and `IntegerVariable`/`FloatVariable`. Previously, both Integer and Float types shared the same `SegmentType.NUMBER` tag, causing conflicts during serialization.

Key changes:
- Introduce distinct `value_type` tags for Integer and Float segments/variables
- Add `VariableUnion` and `SegmentUnion` types for proper type discrimination
- Leverage Pydantic's discriminated union feature for seamless serialization/deserialization
- Enable accurate serialization of data structures containing these types

Closes #22024.
8 months ago
..
(commonLayout) Improve Tooltip UX by enabling delay by default (#21383) 8 months ago
(shareLayout) reject whitespace characters in password regexp (#22232) 9 months ago
account reject whitespace characters in password regexp (#22232) 9 months ago
activate E-300 (#19726) 10 months ago
components refactor(api): Separate SegmentType for Integer/Float to Enable Pydantic Serialization (#22025) 8 months ago
dev-only feat: add i18n checker (ui) (#17283) 12 months ago
dev-preview feat/TanStack-Form (#18346) 11 months ago
education-apply refactor: generalize method for getting doc link respecting locale and fix error link paths (#20801) 10 months ago
forgot-password reject whitespace characters in password regexp (#22232) 9 months ago
init E-300 (#19726) 10 months ago
install reject whitespace characters in password regexp (#22232) 9 months ago
oauth-callback feat: the frontend part of mcp (#22131) 9 months ago
repos/[owner]/[repo]/releases Introduce Plugins (#13836) 1 year ago
reset-password reject whitespace characters in password regexp (#22232) 9 months ago
signin Improve Tooltip UX by enabling delay by default (#21383) 8 months ago
styles feat: prevent input of non-numeric values ​​in numer input (#21562) 9 months ago
layout.tsx feat: introduce new env ALLOW_UNSAFE_DATA_SCHEME to allow rendering data uri scheme (#21321) 9 months ago
page.module.css Enhance Code Consistency Across Repository with `.editorconfig` (#19023) 11 months ago
page.tsx Chore: frontend infrastructure upgrade (#16420) 1 year ago
routePrefixHandle.tsx Modifying the preview of the uploaded avatar will freeze, fix the bug… (#20202) 10 months ago