Skip to content

[CHORE]: [fj-doc-lib-direct] add useChainId param for chain alias #406

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fugerit79 opened this issue Apr 25, 2025 · 0 comments · Fixed by #407
Closed

[CHORE]: [fj-doc-lib-direct] add useChainId param for chain alias #406

fugerit79 opened this issue Apr 25, 2025 · 0 comments · Fixed by #407
Assignees
Labels
enhancement New feature or request

Comments

@fugerit79
Copy link
Member

Module

fj-doc-mod-lib-direct - API for Direct Document Generation

Expected Behavior

Create chain alias to resuce ftl templates

Other information

If useChainId is set, it will be used to resolve the chain instead of chainId.

chainList:  # a template named ${chainId}.ftl must exist in 'templatePath' folder
  - chainId: 'test-doc'
    dataModel:  # inline data model definition
      docTitle: 'Venus Direct Extension - Test Doc'
  - chainId: 'test-doc-json-data-model'
    dataModelJson: 'src/test/resources/data-model/data-model-1.json'  # JSON file data model
    useChainId: 'test-doc'
  - chainId: 'test-doc-yaml-data-model'
    dataModelYaml: 'src/test/resources/data-model/data-model-1.yaml'  # YAML file data model
    useChainId: 'test-doc'`
@fugerit79 fugerit79 self-assigned this Apr 25, 2025
@fugerit79 fugerit79 added the enhancement New feature or request label Apr 25, 2025
mttfranci pushed a commit that referenced this issue Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant