Allow descriptors to be loaded from a file
See original GitHub issueOverview
Starting discussion on Gitter
Would be great to be able to externalize documentation message outside of testing class like .properties
or .yml
files.
Moreover external resources could be localized to allow publish documentation in multiple language:
message.properties
message_fr_FR.properties
message_zh_CN.properties
...
Furthermore link between external resources and testing parameters should be automatic. We must use convention filename/path convention to be able to link each together.
Details
There are many points to take care:
- Which external resources format will be supported? (
properties
,yml
) - How to avoid collisions?
- An external resource per
document
identifier
? - Flat file and prefix (
document
identifier
)? - How can I manage placeholder?
key = blabla blabla forbidden values are {0}
- How to describe message type:
STRING
or whatever - Ability to load external resource outside of
Classpath
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Understanding File Descriptors usage - MuleSoft Help Center
In simple terms a file descriptor is a handler used in the interface the user calls to give kernel instructions, to identify file...
Read more >How to read from custom file descriptors without using unsafe?
How can I achieve the same result without using unsafe ? I am currently creating a file descriptor like this ( zsh shell):...
Read more >How to Fix the 'Too Many Open Files' Error in Linux?
It means that a process has opened too many files (file descriptors) and cannot open new ones. On Linux, the “max open file...
Read more >Text Load Set Table Descriptors - Oracle Help Center
You can create multiple Table Descriptors by uploading a zip file containing multiple metadata files. The system unzips the file, identifies and reads...
Read more >File descriptors | CDP Public Cloud - Cloudera Documentation
Maximum allowed open fds reserved for use by the file cache. Hot replicas, 2 per WAL segment, 1 per WAL index, Number of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ignoring the shorthand for only specifying a description for the moment, I think the YAML could be improved:
The equivalent properties would be:
As we also use swagger, i’ve made a maven plugin that generate FieldDescriptors from model classes. You should find this here: restdoc-helper