ValidationMessage¶
- class xbrl_filings_api.ValidationMessage¶
Bases:
APIResource
Message for a filing in the database from a validator software.
Validation messages are issues in XBRL standard conformance, and the formula rules defined in the XBRL taxonomy.
Country-specific filing rules defined by financial regulatory authorities and other agencies are not in the scope of validation. The rules defined in ESEF Reporting Manual are not checked if they are not codified in the taxonomy formula rules.
Calculation inconsistency is the term used for issues in accounting coherence.
Derived attributes beginning
calc_
are only available whencode
is'xbrl.5.2.5.2:calcInconsistency'
. The ones beginningduplicate_
are available forcode
'message:tech_duplicated_facts1'
if the values are numeric. They are parsed out from thetext
of the message.Notes
The source of validation has not been published by the API provider. However, it seems likely that they originate from Arelle software as they seem similar and JSON and iXBRL viewer files are also generated with it.
Methods
get_data_attributes
([flags, filings])Return data attributes for an
APIResource
.__hash__
()Return hash of
('APIResource', cls.TYPE, self.api_id)
.__repr__
()__str__
()Attributes
The code describing the source of the broken rule.
Severity of the validation message.
Validation message text.
Derived computed sum of the calculation inconsistency.
Derived reported sum of the calculation inconsistency.
Derived XBRL context ID of the calculation inconsistency.
Derived line item name of the calculation inconsistency.
Derived last part of the link role of the calculation inconsistency.
Derived unreported contributing line items of the calculation inconsistency.
Derived greater item of the duplicate pair.
Derived lesser item of the duplicate pair.
Filing of this validation message.
api_id
JSON-API resource
id
ofAPIResource
.query_time
Time when the query function was called for an
APIObject
.request_url
HTTP request URL for an
APIObject
.- TYPE: str = 'validation_message'¶
JSON-API resource
type
ofAPIResource
subclass.
- code: str | None¶
The code describing the source of the broken rule.
For example, code
'xbrl.5.2.5.2:calcInconsistency'
refers to XBRL 2.1 base specification heading 5.2.5.2 with title “The <calculationArc> element”.
- severity: str | None¶
Severity of the validation message.
Can be
ERROR
,WARNING
orINCONSISTENCY
. Might includeERROR-SEMANTIC
andWARNING-SEMANTIC
but most likely not.Arelle has also more message levels, but these are very certainly not included anywhere (
(DYNAMIC)
,CRITICAL
,DEBUG
,EXCEPTION
,INFO
,INFO-RESULT
).
- calc_computed_sum: float | None¶
Derived computed sum of the calculation inconsistency.
Based on attribute
text
for validation messages whosecode
is'xbrl.5.2.5.2:calcInconsistency'
.
- calc_reported_sum: float | None¶
Derived reported sum of the calculation inconsistency.
Based on attribute
text
for validation messages whosecode
is'xbrl.5.2.5.2:calcInconsistency'
.
- calc_context_id: str | None¶
Derived XBRL context ID of the calculation inconsistency.
Based on attribute
text
for validation messages whosecode
is'xbrl.5.2.5.2:calcInconsistency'
.
- calc_line_item: str | None¶
Derived line item name of the calculation inconsistency.
This field contains the qualified name of the line item (XBRL concept) with the taxonomy prefix and the local name parts. It could be for example
ifrs-full:Assets
.Based on attribute
text
for validation messages whosecode
is'xbrl.5.2.5.2:calcInconsistency'
.
- calc_short_role: str | None¶
Derived last part of the link role of the calculation inconsistency.
For example a link role URI “http://www.example.com/esef/taxonomy/2022-12-31/FinancialPositionConsolidated” is truncated to “FinancialPositionConsolidated”.
Based on attribute
text
for validation messages whosecode
is'xbrl.5.2.5.2:calcInconsistency'
.
- calc_unreported_items: list[str] | None¶
Derived unreported contributing line items of the calculation inconsistency.
This refers to the line item names of items which are defined as the addends for
calc_line_item
in any of the link roles in the XBRL taxonomies of this report and which were not reported in the same XBRL context with this fact.When the data is output to a database, this field is a string with parts joined by a newline character.
Based on attribute
text
for validation messages whosecode
is'xbrl.5.2.5.2:calcInconsistency'
.
- duplicate_greater: float | None¶
Derived greater item of the duplicate pair.
Based on attribute
text
for validation messages whosecode
is'message:tech_duplicated_facts1'
.Does not include code
'formula:assertionUnsatisfied'
withtech_duplicated_facts1
in the beginning of the message (more than 2 duplicated facts).
- duplicate_lesser: float | None¶
Derived lesser item of the duplicate pair.
Based on attribute
text
for validation messages whosecode
is'message:tech_duplicated_facts1'
.Does not include code
'formula:assertionUnsatisfied'
withtech_duplicated_facts1
in the beginning of the message (more than 2 duplicated facts).