Open
Conversation
bbaf98e to
dcc207c
Compare
l2ysho
commented
Jan 21, 2026
l2ysho
commented
Jan 21, 2026
l2ysho
commented
Jan 21, 2026
l2ysho
commented
Jan 21, 2026
Comment on lines
1
to
2
| import { readFile } from 'node:fs/promises'; | ||
|
|
Contributor
Author
There was a problem hiding this comment.
Really just starting point of tests. No complex scenarios.
vladfrangu
reviewed
Jan 21, 2026
| }); | ||
|
|
||
| expect(lastErrorMessage()).toMatch(/Generated types written to/); | ||
| expect(lastErrorMessage()).toMatch(/\.generated\/actor\/complex\.ts/); |
Member
There was a problem hiding this comment.
use path.join and i think you can do .toInclude or just expect(lastErrorMessage().includes()).toBeTruthy()
…e-definitions-from-schemas
…mand-for-generating-type-definitions-from-schemas
…rating-type-definitions-from-schemas' into 993-implement-a-command-for-generating-type-definitions-from-schemas
…mand-for-generating-type-definitions-from-schemas
Contributor
Author
Contributor
Author
|
ready for review
|
vladfrangu
reviewed
Feb 17, 2026
| export class ActorGenerateSchemaTypesCommand extends ApifyCommand<typeof ActorGenerateSchemaTypesCommand> { | ||
| static override name = 'generate-schema-types' as const; | ||
|
|
||
| static override hiddenAliases = ['generate-types']; |
Member
There was a problem hiding this comment.
Maybe we want this too as an alias? CC @B4nan @patrikbraborec
Suggested change
| static override hiddenAliases = ['generate-types']; | |
| static override hiddenAliases = ['generate-types', 'generate']; |
| description: | ||
| 'Directory where the generated files should be outputted. Defaults to src/.generated/actor/ to stay within the typical tsconfig rootDir.', | ||
| required: false, | ||
| default: 'src/.generated/actor/', |
Member
There was a problem hiding this comment.
Suggested change
| default: 'src/.generated/actor/', | |
| default: join('src', 'generated', 'actor'), |
Comment on lines
203
to
207
| if (datasetSchemaPath) { | ||
| info({ message: `Generating types from dataset schema at ${datasetSchemaPath}` }); | ||
| } else { | ||
| info({ message: `Generating types from dataset schema embedded in '${LOCAL_CONFIG_PATH}'` }); | ||
| } |
Member
There was a problem hiding this comment.
Do check if Dataset also has to be capitalized, like how Actor has to be
Contributor
Author
There was a problem hiding this comment.
according to other places in code it should be capitalized
Contributor
Author
|
some updates
|
…e-definitions-from-schemas
…e-definitions-from-schemas
l2ysho
commented
Feb 20, 2026
Comment on lines
+22
to
+23
| // biome-ignore-all lint: generated | ||
| // biome-ignore-all format: generated |
Contributor
Author
There was a problem hiding this comment.
must be inline, format is available in >2.4.0
biome playground example cc @B4nan
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
"backlog"
Draft summary
apify actor generate-schema-types --helpTO DO:
srcdue to tsconfigactor generate-schema->generate-schema-typesto keep consistency withactor validate-schema?- this must be done manually,
json-schema-to-typescriptdoes not support this- this must be done manually,
json-schema-to-typescriptdoes not support thisfeedback from @B4nan
Must fix
Should fix
Nice to have