Skip to content
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

fix: "* initializer is inaccessible due to 'internal' protection level" #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/Model/OFF/ProductConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public struct ProductQueryConfiguration {
var languages: [OpenFoodFactsLanguage]
var fields: [ProductField]?

init(barcode: String,
public init(barcode: String,
languages: [OpenFoodFactsLanguage] = [],
country: OpenFoodFactsCountry? = nil,
fields: [ProductField]? = nil) {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Model/OFF/ProductField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import Foundation

enum ProductField: String {
public enum ProductField: String {
case barcode = "code"
case name = "product_name"
case nameInLanguages = "product_name_"
Expand Down
6 changes: 3 additions & 3 deletions Sources/Model/OFF/ProductResponse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ public struct ProductResponse: Decodable {
/// Possible value for [result.id]: product not found
static let resultProductNotFound = "product_not_found"

let barcode: String?
let status: String?
let product: Product?
public let barcode: String?
public let status: String?
public let product: Product?

enum CodingKeys: String, CodingKey {
case barcode = "code"
Expand Down
Loading