Skip to content

Commit

Permalink
fixes #45 update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
stevehu committed Aug 13, 2018
1 parent 30bd68f commit 92b59e9
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 22 deletions.
9 changes: 6 additions & 3 deletions openapi-security/src/main/resources/config/security.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Security configuration in light framework. This is a generic security config
# for all frameworks. In most cases, you should just use this file if you have
# only one framework in your server instance.
# This is a generic security config for all frameworks. You should use the
# openapi-security.yml which is specific for OpenAPI 3.0 framework. The
# openapi-security.yml is introduced to support multiple frameworks in the
# same server instance and it is recommended. The security.yml will be loaded
# if openapi-security.yml cannot be found for backward compatibility and it
# might be removed in the next major release.
---
# Enable JWT verification flag.
enableVerifyJwt: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Security configuration for openapi-security in light-rest-4j. It is a specific config
# for OpenAPI framework and it can be used if you have other frameworks running in the
# same server instance and their security configurations are different then the OpenAPI.
# If this file cannot be found, the generic security.yml will be loaded as a fallback.
# for OpenAPI framework security. It is introduced to support multiple frameworks in the
# same server instance. If this file cannot be found, the generic security.yml will be
# loaded for backward compatibility.
---
# Enable JWT verification flag.
enableVerifyJwt: true
Expand Down
6 changes: 4 additions & 2 deletions openapi-validator/src/main/resources/config/validator.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# A generic light-4j framework validator configuration. If multiple frameworks are used in the
# same server instance and they have different configurations. You can use openapi-validator.yml
# A generic light-4j framework validator configuration. There is another openapi-validator.yml which
# is introduced to support multiple frameworks in the same server instance and it is recommended. The
# validator.yml will be loaded if openapi-validator.yml cannot be found for backward compatibility
# and it might be removed in the next major release.
---
# Enable request validation. Response validation is not done on the server but client.
enabled: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is specific OpenAPI validator configuration file. It should be used if you have multiple
# frameworks implemented in the same server instance and they all need to have different validator
# configurations. If they share the same validator.yml then you can still use that one.
# This is specific OpenAPI validator configuration file. It is introduced to support multiple
# frameworks in the same server instance and it is recommended. If this file cannot be found,
# the generic validator.yml will be loaded as a fallback.
---
# Enable request validation. Response validation is not done on the server but client.
enabled: true
Expand Down
9 changes: 6 additions & 3 deletions swagger-security/src/main/resources/config/security.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Security configuration in light framework. This is a generic security config
# for all frameworks. In most cases, you should just use this file if you have
# only one framework in your server instance.
# This is a generic security config for all frameworks. You should use the
# swagger-security.yml which is specific for Swagger 2.0 framework. The
# swagger-security.yml is introduced to support multiple frameworks in the
# same server instance and it is recommended. The security.yml will be loaded
# if swagger-security.yml cannot be found for backward compatibility and it
# might be removed in the next major release.
---
# Enable JWT verification flag.
enableVerifyJwt: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Security configuration for swagger-security in light-rest-4j. It is a specific config
# for Swagger framework and it can be used if you have other frameworks running in the
# same server instance and their security configurations are different then the Swagger.
# If this file cannot be found, the generic security.yml will be loaded as a fallback.
# for Swagger framework security. It is introduced to support multiple frameworks in the
# same server instance. If this file cannot be found, the generic security.yml will be
# loaded for backward compatibility.
---
# Enable JWT verification flag.
enableVerifyJwt: true
Expand Down
6 changes: 4 additions & 2 deletions swagger-validator/src/main/resources/config/validator.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# A generic light-4j framework validator configuration. If multiple frameworks are used in the
# same server instance and they have different configurations. You can use swagger-validator.yml
# A generic light-4j framework validator configuration. There is another swagger-validator.yml which
# is introduced to support multiple frameworks in the same server instance and it is recommended. The
# validator.yml will be loaded if swagger-validator.yml cannot be found for backward compatibility
# and it might be removed in the next major release.
---
# Enable request validation. Response validation is not done on the server but client.
enabled: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is specific Swagger validator configuration file. It should be used if you have multiple
# frameworks implemented in the same server instance and they all need to have different validator
# configurations. If they share the same validator.yml then you can still use that one.
# This is specific Swagger validator configuration file. It is introduced to support multiple
# frameworks in the same server instance and it is recommended. If this file cannot be found,
# the generic validator.yml will be loaded as a fallback.
---
# Enable request validation. Response validation is not done on the server but client.
enabled: true
Expand Down

0 comments on commit 92b59e9

Please sign in to comment.