Fix #1237: clone mode fails when tags.Example
comes.
#1238
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to improve the functionality and structure of the codebase, particularly focusing on the
bbs
module and type definitions. The most important changes include the addition of new API functions and the use oftypia
tags to enhance type safety and validation.Enhancements to API functions:
test/features/clone/src/api/functional/bbs/articles/index.ts
: Added a new functionrandom
to fetch a random BBS article, including metadata and path definitions.test/features/clone/src/api/functional/bbs/index.ts
: Added an export for thearticles
module.test/features/clone/src/api/functional/index.ts
: Added an export for thebbs
module.Type definitions and validation improvements:
test/features/clone/src/api/structures/IAttachmentFile.ts
: IntroducedIAttachmentFile
type withMaxLength
,MinLength
, andExample
tags for enhanced validation.test/features/clone/src/api/structures/IBbsArticle.ts
: AddedIBbsArticle
type withFormat
,MaxLength
, andMinLength
tags for better type safety and validation.test/features/route/src/api/structures/IBbsArticle.ts
: RefactoredIBbsArticle
to usetypia
tags for improved type definitions and validation.Code cleanup and refactoring:
packages/sdk/src/generates/internal/SdkTypeTagProgrammer.ts
: Removed the unused importExpressionFactory
and refactored the code to simplify the creation of literal type nodes usingLiteralFactory
. [1] [2]Version updates:
package.json
: Updated the version from4.6.1
to4.6.2
.