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
NLog XSD schema broken #3472
Comments
Issue: <xs:attribute name="filter" type="Filter">
<xs:annotation>
<xs:documentation>Filter. Log events who evaluates to will be discarded</xs:documentation>
</xs:annotation>
</xs:attribute> inside <xs:complexType name="FilteringWrapper">
<xs:complexContent>
<xs:extension base="WrapperTargetBase">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
<xs:element name="condition" minOccurs="0" maxOccurs="1" type="Condition" />
<xs:element name="filter" minOccurs="0" maxOccurs="1" type="Filter" />
<xs:element name="optimizeBufferReuse" minOccurs="0" maxOccurs="1" type="xs:boolean" />
</xs:choice>
<xs:attribute name="name" type="xs:string">
<xs:annotation>
<xs:documentation>Name of the target.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="condition" type="Condition">
<xs:annotation>
<xs:documentation>Condition expression. Log events who meet this condition will be forwarded to the wrapped target.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="filter" type="Filter">
<xs:annotation>
<xs:documentation>Filter. Log events who evaluates to will be discarded</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="optimizeBufferReuse" type="xs:boolean">
<xs:annotation>
<xs:documentation>Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType> |
This is not from the template (NLog/tools/MakeNLogXSD/TemplateXSD.xml) |
filter isn't an attribute, but not sure why it generated like that |
<xs:attribute name="filter" type="Filter">
<xs:annotation>
<xs:documentation>Filter. Log events who evaluates to will be discarded</xs:documentation>
</xs:annotation>
</xs:attribute> needs to be removed, as we have already the child element:
|
found another issue -> #3473 |
quick fixed online by NLog/NLog.github.io@8bdcd92#diff-7a71422add18a6aa259cdf7abd0887d1 |
tools/MakeNLogXSD/XsdFileGenerator.cs of dfd3845 could be the issue |
|
Warning Type 'http://www.nlog-project.org/schemas/NLog.xsd:Filter' is not declared, or is not a simple type.
Seems to be broken with NLog 4.6.4 (4.6.3 is OK)
broken with NLog/NLog.github.io@febd452
The text was updated successfully, but these errors were encountered: