Skip to content

Commit

Permalink
Datatype plugin_modification_date to string for metaschema-framework#6
Browse files Browse the repository at this point in the history
The data as-is in real-world data doesn't use date as guessed, so we
must consume the data as a long multiline string without markup and only
process it as a string to start.

Error messaging:

[ERROR] cvc-type.3.1.3: The value '2011/04/05' of element 'plugin_modification_date' is not valid. [file:/home/me/example.xml{2746,64}]
  • Loading branch information
aj-stein-gsa committed Oct 6, 2024
1 parent 58f0709 commit 634ff5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nessus/nessus-module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
</define-field>
<define-field name="exploit_available" min-occurs="0" max-occurs="1" as-type="boolean"/>
<!-- TODO: Unclear if example data conforms to more specific datatype than implemented below, investigate. -->
<define-field name="plugin_modification_date" min-occurs="0" max-occurs="1" as-type="date"/>
<define-field name="plugin_modification_date" min-occurs="0" max-occurs="1" as-type="string"/>
<define-field name="bid" min-occurs="0" max-occurs="1" as-type="string"/>
<define-field name="cvss_base_score" min-occurs="0" max-occurs="1" as-type="string"/>
<define-field name="xref" min-occurs="0" max-occurs="unbounded" as-type="string">
Expand Down

0 comments on commit 634ff5e

Please sign in to comment.