Skip to content

Commit

Permalink
Merge pull request #996 from ibi-group/mobility-data-validator-4.1.0
Browse files Browse the repository at this point in the history
Mobility data validator 4.1.0
  • Loading branch information
miles-grant-ibigroup authored Nov 9, 2023
2 parents 7682f9e + 70bb9e8 commit 6e6185b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 55 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const renderNoticeDetail = (notice) => {
}

const MobilityDataValidationResult = ({notice}) => {
const rule = rules.find((rd) => rd.rule === notice.code)
const rule = rules[notice.code]
if (!rule) return null

const errorClass = `gtfs-error-${mobilityDataValidationErrorMapping[notice.severity]}`
Expand Down Expand Up @@ -135,10 +135,11 @@ const MobilityDataValidationResult = ({notice}) => {
</h4>
{expanded && (
<>
<p><Markdown>{rule.description}</Markdown></p>
<p><Markdown>{rule.shortSummary || ''}</Markdown></p>
<p><Markdown>{rule.description || ''}</Markdown></p>
<p>
<a
href={`https://github.com/MobilityData/gtfs-validator/blob/master/RULES.md#${notice.code}`}
href={`https://gtfs-validator.mobilitydata.org/rules.html#${notice.code}`}
target='_blank'
rel='noreferrer'
>
Expand Down
Loading

0 comments on commit 6e6185b

Please sign in to comment.