-
Notifications
You must be signed in to change notification settings - Fork 737
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
Allow descriptors to be loaded from a file #248
Comments
I think localization should be considered as a separate issue for a couple of reasons:
|
I think we should offer something like:
As the example points out ( Personally I would strongly favour Regarding one big file or separate properties file per method I'm not sure. Another interesting aspect about this when documenting fields like this, is how we can reuse parts. |
@marceloverdijk do you have any sample idea to represent what you posted above in |
@kakawait something like this?
or alternatively something like I don't like it but that's why I think |
Ignoring the shorthand for only specifying a description for the moment, I think the YAML could be improved: field1:
description: The description of field 1
field2:
type: String
description: The description of field 2
attributes:
constraints: Not null
remarks: Lorem ipsem The equivalent properties would be: field1.description = The description of field 1
field2.type = String
field2.description = The description of field 2
field2.attributes.constraints = Not null
field2.attributes.remarks = Lorem ipsem |
As we also use swagger, i've made a maven plugin that generate FieldDescriptors from model classes. |
Overview
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:
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:
properties
,yml
)document
identifier
?document
identifier
)?STRING
or whateverClasspath
The text was updated successfully, but these errors were encountered: