Skip to content

New fields in configuration file and libraries version up#91

Open
mrandrewsmith wants to merge 1 commit into
masterfrom
feature/improvments
Open

New fields in configuration file and libraries version up#91
mrandrewsmith wants to merge 1 commit into
masterfrom
feature/improvments

Conversation

@mrandrewsmith

@mrandrewsmith mrandrewsmith commented Feb 13, 2025

Copy link
Copy Markdown
  • Added new environment fields to the surfGen configuration for using custom variables within Stencil templates.
  • Updated the SwagGen library, adding the pattern field.
  • Updated the Stencil library for easier syntax when removing empty lines and spaces.

Usage of environment:

/// If located at the root, it is accessible in all Stencil files through {{ variable1 }} or {{ variable1 }}
environment:
  variable1: value1
  variable2: value2

templates:
  - type: service
/// If located in the template, it is only accessible in the service Stencil files. 
/// However, if the keys match the root environment, 
/// the value from the root environment will not work. 
/// In this case, {{ variable2 }} in the service template will return `templateValue`.
    environment:
      variable2: templateValue

@mrandrewsmith mrandrewsmith self-assigned this Feb 13, 2025
@mrandrewsmith mrandrewsmith changed the title Добавление новых полей в конфигурацию и обновление библиотек Added new fields in configuration file and updated libraries Feb 13, 2025
@mrandrewsmith mrandrewsmith changed the title Added new fields in configuration file and updated libraries New fields in configuration file and libraries version up Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants