Skip to content

Commit

Permalink
finos#486 comments cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
willosborne committed Oct 25, 2024
1 parent 834d741 commit c47c06c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion cli/src/commands/generate/components/instantiate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function instantiateGenericObject(definition: object, schemaDirectory: Sc
const currentPath = appendPath(path, key);
const renderedPath = renderPath(currentPath);

if (!instantiateAll && required && !required.includes(key) && key !== 'interfaces') { // TODO should we always do interfaces even if not required?
if (!instantiateAll && required && !required.includes(key) && key !== 'interfaces') {
logger.debug(`${renderedPath}: Skipping property ${key} as it is not marked as required.`);
continue;
}
Expand Down
1 change: 0 additions & 1 deletion cli/src/commands/generate/schema-directory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ export class SchemaDirectory {
public getDefinition(definitionReference: string) {
this.logger.debug(`Resolving ${definitionReference} from schema directory.`);
return this.getDefinitionRecursive(definitionReference, 'pattern', []);
// TODO propagate the required fields
}

/**
Expand Down

0 comments on commit c47c06c

Please sign in to comment.