Modify ↓

Opened 3 weeks ago

Last modified 3 weeks ago

#25008 new enhancement

Improve the tagging preset schema

Reported by: gaben Owned by: team
Priority: normal Milestone: 26.12
Component: Internal preset Version:
Keywords: xsd tagging schema validation Cc: Famlam, simonpoole, stoecker, skyper

Description

I plan to add a new description to the XSD fields, as well as some extra validation, if possible (e.g. object types [node, way, relation]). While the schema is designed to be flexible, it is also error-prone. For almost 15 years, the fact that it contains unused parameters went unnoticed. Examples:

More stringent validation enabled me to fix r19563, which had also gone unnoticed for some time.

The patch will follow soon, hopefully.

Attachments (1)

josm_25008_values_no_i18n.patch​ (3.3 KB ) - added by skyper 3 weeks ago.
replace wrong values_i18n="false" with correct values_no_i18n="true"

Download all attachments as: .zip

Change History (6)

comment:1 by stoecker, 3 weeks ago

Problem is the I18n tags which prevent the checks for unused values.

Also preventing unused values makes new values impossible due to backwards compatibilty.

Stricter checks must be optional/warnings and XSD doesn't support that as far as I know.

Last edited 3 weeks ago by stoecker (previous) (diff)

comment:2 by stoecker, 3 weeks ago

values_i18n="false" has been introduced by r16474 and actually should be values_no_i18n="true" instead? See 12:ticket:17818

in reply to:  2 comment:3 by gaben, 3 weeks ago

I think yes.

by skyper, 3 weeks ago

replace wrong values_i18n="false" with correct values_no_i18n="true"

comment:4 by skyper, 3 weeks ago

Replying to stoecker:

values_i18n="false" has been introduced by r16474 and actually should be values_no_i18n="true" instead? See 12:ticket:17818

Damn, my fault. Yes, should be values_no_i18n="true". patch​ attached.​ Hope it is correct.

comment:5 by stoecker, 3 weeks ago

In 19679/josm:

fix values_no_i18n, patch by skyper, see #25008

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to gaben.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.