REUSE Compliance for JSON files #82
Unanswered
nick-allen21
asked this question in
Challenges and Help
Replies: 1 comment 3 replies
-
@nick-allen21 The REUSE specification has a dedicated mechanism for this: https://reuse.software/spec-3.3/#comment-headers
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What Stanford Spezi module is your challenge related to?
Spezi
Description
I have added a Json file for a certain function in my application. I am not sure how I can make this file copyright dependent
/ SPDX-FileCopyrightText: 2025 Stanford University
//
// SPDX-License-Identifier: LicenseRef-QUANBIO
there is no way to add the above to the file such that the check reads it and such that I able to preoperly decode it to use in my application.
Reproduction
create a new Json file and attempt to pass the tests without changing the way you decode the json file
here is the code that I use to decode my Json
func loadRiddles() -> [Riddle] { guard let url = Bundle.main.url(forResource: "RiddlesTest", withExtension: "json"), let data = try? Data(contentsOf: url), let riddles = try? JSONDecoder().decode([Riddle].self, from: data) else { let riddle = Riddle(question: "", answer: "") return [riddle] } print(riddles) return riddles }
Expected behavior
I would like to either pass the compliance check for this Json file or find a way to add these copyright specifications to the Json file without changing how the workflow comes about.
Additional context
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions