Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
bd2fd48
Add TOML media type (#12082)
tomas-langer Jun 9, 2026
d66d38b
27.x: upgrade jackson, typesafe-config, snakeyaml (#11998)
barchetta Jun 9, 2026
eef416f
Adds data/runtime, data/jdbc/jdbc, and data/jdbc/executor modules
ljnelson Apr 15, 2026
8f1caf1
Squashable commit; refactoring
ljnelson Apr 15, 2026
1bb02dd
Squashable commit; refactoring
ljnelson Apr 15, 2026
f2ab2fb
Squashable commit; introduces data/plan modules; adds data/jdbc/named…
ljnelson Apr 16, 2026
a64eea1
Squashable commit; adds typeMap to connection state and JdbcPlanImpl
ljnelson Apr 16, 2026
86cd8fd
Squashable commit; ensure typeMap is immutable
ljnelson Apr 16, 2026
61f48f7
Squashable commit; ensuring clientInfo is copied
ljnelson Apr 16, 2026
3fe3e9c
Squashable commit; binding view implemented
ljnelson Apr 16, 2026
e238112
Squashable commit; introduces simple generic argument processing in J…
ljnelson Apr 16, 2026
8de10c7
Squashable commit; introduces JDBC transactions skeletally; tweaks Na…
ljnelson Apr 16, 2026
700481d
Squashable commit; JDBC transaction engine now functionally complete
ljnelson Apr 17, 2026
4a50381
Squashable commit; refactoring
ljnelson Apr 19, 2026
19e8eb2
Squashable commit; adds transformation abilities to plan/jdbc; adds t…
ljnelson Apr 21, 2026
69360c3
Squashable commit; moved poor-man's integration test of JDBC Transact…
ljnelson Apr 21, 2026
ff649d4
Squashable commit; refactoring
ljnelson Apr 23, 2026
7238919
Squashable commit; refactoring; JdbcResults now supports multiple sta…
ljnelson Apr 24, 2026
850e450
Squashable commit; refactoring; adds support for batch execution
ljnelson Apr 24, 2026
a2815b6
Squashable commit; refactoring; cleaning up naming
ljnelson Apr 24, 2026
0e72009
Squashable commit; refactoring; runtime layer first cut complete
ljnelson Apr 28, 2026
a3b6cbc
Squashable commit; refactoring and documentation
ljnelson May 11, 2026
dcdfda0
Squashable commit; interim checking before rebasing
ljnelson May 20, 2026
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
Next Next commit
Add TOML media type (helidon-io#12082)
  • Loading branch information
tomas-langer authored Jun 9, 2026
commit bd2fd482be7570f4721bd3d91b94fc01513c1b64
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ enum MediaTypeEnum implements MediaType {
APPLICATION_YAML("application", "yaml"),
TEXT_X_YAML("text", "x-yaml"),
TEXT_YAML("text", "yaml"),
APPLICATION_TOML("application", "toml"),
APPLICATION_JAVASCRIPT("application", "javascript"),
TEXT_EVENT_STREAM("text", "event-stream"),
APPLICATION_X_NDJSON("application", "x-ndjson"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ public final class MediaTypes {
* {@code text/yaml} media type.
*/
public static final MediaType TEXT_YAML = MediaTypeEnum.TEXT_YAML;
/**
* {@code application/toml} media type.
*/
public static final MediaType APPLICATION_TOML = MediaTypeEnum.APPLICATION_TOML;
/**
* {@code application/javascript} media type.
*/
Expand Down Expand Up @@ -231,6 +235,10 @@ public final class MediaTypes {
* String value of media type: {@value}.
*/
public static final String TEXT_YAML_VALUE = "text/yaml";
/**
* String value of media type: {@value}.
*/
public static final String APPLICATION_TOML_VALUE = "application/toml";
/**
* String value of media type: {@value}.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2019, 2021 Oracle and/or its affiliates.
# Copyright (c) 2019, 2026 Oracle and/or its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -163,6 +163,7 @@ texi=application/x-texinfo
texinfo=application/x-texinfo
tif=image/tiff
tiff=image/tiff
toml=application/toml
tr=application/x-troff
ts=video/mp2t
tsv=text/tab-separated-values
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, 2025 Oracle and/or its affiliates.
* Copyright (c) 2022, 2026 Oracle and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -131,6 +131,10 @@ void testCustom() {
Optional<MediaType> hocon = MediaTypes.detectExtensionType("json");

assertThat(hocon, optionalValue(is(MediaTypes.APPLICATION_HOCON)));

Optional<MediaType> toml = MediaTypes.detectExtensionType("toml");

assertThat(toml, optionalValue(is(MediaTypes.APPLICATION_TOML)));
}

@Test
Expand Down Expand Up @@ -170,4 +174,4 @@ void testAllTypes() throws IOException {
assertThat(detected.map(MediaType::text), optionalValue(containsString("/")));
}
}
}
}